Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback DecoratorDrawer: sample not working

Discussion in 'Documentation' started by OlivierPons, Jun 20, 2021.

?

If the documentation doesnt follow the Unity versions, and is not clean / or / buggy

  1. You will search on your own for countless hours because you love Unity

    0 vote(s)
    0.0%
  2. You look for another game engine

    0 vote(s)
    0.0%
  3. You might give up on your project because it's the 4874th time you have such problem

    0 vote(s)
    0.0%
  1. OlivierPons

    OlivierPons

    Joined:
    Sep 20, 2014
    Posts:
    28
    Here:

    https://docs.unity3d.com/ScriptReference/DecoratorDrawer.html

    - Copy/paste the code
    - Clean it (user Rider suggestions, alt-enter 10 times and it's done - the code is absolutely never clean, please use Rider once in your life)

    Try this above one property in a C# file:

    Code (CSharp):
    1. [ColorSpacer(1, 2, 200, .0f, 0f, 0f)]
    - Color is ignored (it's always "white"), try all RGB values you want
    - you cant add many "ColorSpacer" attributes because when you try you get "error CS0579: Duplicate 'ColorSpacer' attribute"


    Such a burning shame you dont update properly your documentation. I've been paying $30 every month for 4 years. When my game is finished I'll give a try to Unreal.