기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyAttribute

Base class to derive custom property attributes from. Use this to create custom attributes for script variables.
읽는 시간 3분최근 업데이트: 한 달 전

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