How to use custom attributes in Unity for better editor experience?
📅 April 11th, 2021
⏱️ 1 min read
Unity Custom Attributes
You may need custom attributes for a better inspector window.
- Button to run test methods
- Text box for error,warning etc
- Drop downs for fixed string values ex. tags
- Public variable,but read only
Use NaughtyAttributes free asset by : Denis Rizov Twitter
One of my recent favorite is to see properties of a scriptable object in inspector.