Class ConditionAttribute
The ConditionAttribute contains metadata for conditions used in Behavior graphs.
Inherited Members
Namespace: Unity.Behavior
Assembly: Unity.Behavior.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class ConditionAttribute : Attribute
Constructors
ConditionAttribute(string, string, string, string, string, string)
Initializes an instance of the ConditionAttribute class with the provided metadata.
Declaration
public ConditionAttribute(string name = "", string description = "", string story = "", string category = "", string id = "", string filePath = "")
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the condition. |
string | description | The description of the condition's function. |
string | story | The story message that describes the condition that is being evaluated. |
string | category | The category path this condition belongs to and will be shown on the search window. |
string | id | A unique ID used to identify this condition. |
string | filePath | The path to the script file containing this attribute. |
Properties
Category
The category path this condition belongs to and will be shown on the search window.
Declaration
public string Category { get; }
Property Value
Type | Description |
---|---|
string |
Description
The description of the condition's function.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
FilePath
The path to the script file containing this attribute.
Declaration
public string FilePath { get; }
Property Value
Type | Description |
---|---|
string |
GUID
A unique ID used to identify this condition.
Declaration
public SerializableGUID GUID { get; }
Property Value
Type | Description |
---|---|
SerializableGUID |
Name
The name of the condition.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Story
The condition message that describes the condition that has occured.
Declaration
public string Story { get; }
Property Value
Type | Description |
---|---|
string |