#Custom property attribute doesn't work (help)

1 messages · Page 1 of 1 (latest)

ocean cloud
#

I can't get a custom propertyattribute to work. I've copy-pasted the colorspacer example from the DecoratorDrawer documentation:
https://docs.unity3d.com/ScriptReference/DecoratorDrawer.html

However, when I try to use the attribute it isn't recognized by intellisense. After tons of googling I'm stumped, I just don't know what I'm doing wrong

#

I'm trying to use it in a scriptableobject script, if that helps

#

Uh, nevermind, I figured it out. Apparently moving the script to a different folder fixed it.

#

It was in Scripts->EditorParentFolder->Editor->Attributes. Any idea why this caused an issue?

hot python
#

So for the attribute keep it outside the folder and
Keep ur property drawer inside the editor folder

ocean cloud
#

Aah, right!

#

Thanks, that makes sense 🙂

hot python
#

Wlcm

#

I was confused when i first encountered this as well

ocean cloud
#

Yeah, I'm a little surprised the documentation didn't mention it, but I guess the documentation assumes that anyone using Editor folders know how they work (which clearly wasn't the case with me)

hot python