Class BlackboardVariable
A variable used within a blackboard.
Inherited Members
Namespace: Unity.Muse.Behavior
Assembly: Unity.Muse.Behavior.dll
Syntax
[Serializable]
[JsonObject(IsReference = true)]
public abstract class BlackboardVariable
Fields
GUID
A GUID used to uniquely identify the variable.
Declaration
[SerializeField]
public SerializableGUID GUID
Field Value
| Type | Description |
|---|---|
| SerializableGUID |
Name
The name of the variable.
Declaration
[SerializeField]
public string Name
Field Value
| Type | Description |
|---|---|
| string |
Properties
ObjectValue
The value of the variable.
Declaration
[JsonIgnore]
public abstract object ObjectValue { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Type
The type of the variable.
Declaration
[JsonIgnore]
public abstract Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
Equals(BlackboardVariable)
Returns true if the two variables are equal and false otherwise.
Declaration
public virtual bool Equals(BlackboardVariable other)
Parameters
| Type | Name | Description |
|---|---|---|
| BlackboardVariable | other | The variable to compare to. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the two variables are equal and false otherwise. |
ValueEquals(BlackboardVariable)
Returns true if the values of the two variables are equal and false otherwise.
Declaration
public abstract bool ValueEquals(BlackboardVariable other)
Parameters
| Type | Name | Description |
|---|---|---|
| BlackboardVariable | other | The variable whose value is compared to. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the values of the two variables are equal and false otherwise. |
Events
OnValueChanged
Callback used for changes in the blackboard variable value.
Declaration
public event BlackboardVariable.ValueChangedCallback OnValueChanged
Event Type
| Type | Description |
|---|---|
| BlackboardVariable.ValueChangedCallback |