ドキュメント

Unity Engine

Unity Engine

PropertyAttribute

Base class to derive custom property attributes from. Use this to create custom attributes for script variables.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前

Definition

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = false)]public abstract class PropertyAttribute : Attribute

Remarks

A custom attributes can be hooked up with a custom PropertyDrawer class to control how a script variable with that attribute is shown in the Inspector.
Additional Resources: PropertyDrawer class.

Properties

Property

Description

applyToCollectionMakes attribute affect collections instead of their items.
orderOptional field to specify the order that multiple DecorationDrawers should be drawn in.

Inheritance

Inherited Members