Class EventChannelBase
Event channels are used to send and receive event messages.
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Behavior
Assembly: Unity.Behavior.dll
Syntax
public abstract class EventChannelBase : ScriptableObject
Methods
CreateEventHandler(BlackboardVariable[], Action)
Creates an event handler for the channel.
Declaration
public abstract Delegate CreateEventHandler(BlackboardVariable[] vars, Action callback)
Parameters
Type | Name | Description |
---|---|---|
BlackboardVariable[] | vars | The Blackboard Variables which will receive the data for the message. |
Action | callback | The callback to be called for the event. |
Returns
Type | Description |
---|---|
Delegate | The created event handler. |
RegisterListener(Delegate)
registers a listener to the channel.
Declaration
public abstract void RegisterListener(Delegate unityAction)
Parameters
Type | Name | Description |
---|---|---|
Delegate | unityAction | The delegate to register. |
SendEventMessage(BlackboardVariable[])
Sends an event message on the channel.
Declaration
public abstract void SendEventMessage(BlackboardVariable[] messageData)
Parameters
Type | Name | Description |
---|---|---|
BlackboardVariable[] | messageData | The Blackboard Variables holding the data for the message. |
UnregisterListener(Delegate)
Unregisters a listener from the channel.
Declaration
public abstract void UnregisterListener(Delegate unityAction)
Parameters
Type | Name | Description |
---|---|---|
Delegate | unityAction | The delegate to unregister. |