Documentation

Unity Engine

Unity Engine

ConditionAttribute

Attribute used to specify metadata for a Condition class, such as its title.
Read time 3 minutesLast updated 2 months ago

Definition

[AttributeUsage(AttributeTargets.Class)]public sealed class ConditionAttribute : Attribute

Remarks

Apply this attribute to a class derived from Condition to define its ConditionAttribute.Title, used to name the condition in the add-condition menu of the transition inspector. Without the attribute, the menu shows the condition type name formatted for display. The label of the condition row in the transition inspector is controlled by Condition.Title.

Constructors

Constructor

Description

ConditionAttribute(System.String)Initializes a new instance of the ConditionAttribute class.

Properties

Property

Description

TitleThe title of this condition type.

Inheritance

Inherited Members