Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CustomPropertyDrawer

Tells a custom PropertyDrawer or DecoratorDrawer which run-time IAudioEffect.Serializable class or PropertyAttribute it's a drawer for.
Read time 4 minutesLast updated 5 days ago

Definition

[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]public sealed class CustomPropertyDrawer : Attribute

Remarks

When you make a custom PropertyDrawer or DecoratorDrawer, you need put this attribute on the drawer class. If the drawer is for a IAudioEffect.Serializable class, then pass the type of the class to the CustomPropertyDrawer attribute (only valid for PropertyDrawers; not DecoratorDrawers). If the drawer is for a PropertyAttribute, then pass the type of the PropertyAttribute to the CustomPropertyDrawer attribute.
Additional Resources: PropertyDrawer class, DecoratorDrawer class.

Constructors

Constructor

Description

CustomPropertyDrawer(System.Type)Tells a PropertyDrawer or DecoratorDrawer class which run-time class or attribute it's a drawer for.
CustomPropertyDrawer(System.Type,System.Boolean)Tells a PropertyDrawer or DecoratorDrawer class which run-time class or attribute it's a drawer for.

Inheritance

Inherited Members