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
  • ReorderableList
  • Public variable,but read only

Use NaughtyAttributes free asset by : Denis Rizov Twitter Infobox attribute Example Tag Field Example

Naughty Attributes has a lot more custom attributes : Github : https://github.com/dbrizov/NaughtyAttributes Unity Asset : Unity Asset Store Link

One of my recent favorite is to see properties of a scriptable object in inspector.

Subscribe to Our newsletter !

*We don't send Spam