- Home /
HeaderAttribute [Header()] on ScriptableObject not working?
I currently have a class derived from ScriptableObject which has [Header("stuff"] in it. When I select the object in my assets, it doesn't draw the headers as the inspector usually does. It works on other classes, why not on ScriptableObject?
Answer by fusecore · Feb 10, 2016 at 09:58 AM
Solved: header attributes don't work if the class doesn;t have its own file
Thank you! I was struggling why attributes and inspector doesn't work with scriptable objects. Your answer saved me a lot of time.
I don't understand your answer… (They work fine for me. At first it didn't because I was using it on a private non serialized field)
Answer by anatodica · May 01, 2018 at 06:55 PM
In my case I had to remove the namespace around the class to get the header and tooltip attributes to show up in the Inspector. I also had my class in its own file.
Your answer
Follow this Question
Related Questions
Scriptable Object only useable from code, not via inspector 1 Answer
Is there a way to drag a Subclass onto a Field of the Super Type? 1 Answer
Custom Editor Window not displaying anything 1 Answer
Using ScriptableObjects to build ECS archetypes 0 Answers
How do I save scripts as variables in the inspector? 0 Answers