ConditionAttribute
Attribute used to specify metadata for a Condition class, such as its title.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
- Inherits from: Attribute
[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 |
|---|---|
| Title | The title of this condition type. |