Click or drag to resize

UnityEventCommandTBehaviour, TEventData Class

Base class for a command which is called on a Unity event.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Foundation.CommandsCommand
            Slash.Unity.DataBind.UI.Unity.CommandsUnityEventCommandBaseTBehaviour
              Slash.Unity.DataBind.UI.Unity.CommandsUnityEventCommandTBehaviour, TEventData
                Slash.Unity.DataBind.GestureInput.CommandsDragCommand
                Slash.Unity.DataBind.GestureInput.CommandsSwipeCommand
                Slash.Unity.DataBind.UI.Unity.CommandsEventTriggerCommand

Namespace:  Slash.Unity.DataBind.UI.Unity.Commands
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class UnityEventCommand<TBehaviour, TEventData> : UnityEventCommandBase<TBehaviour>
where TBehaviour : MonoBehaviour

Type Parameters

TBehaviour
Type of mono behaviour to observe for event.
TEventData
Type of event data send with the command.

The UnityEventCommandTBehaviour, TEventData type exposes the following members.

Constructors
  NameDescription
Protected methodUnityEventCommandTBehaviour, TEventData
Initializes a new instance of the UnityEventCommandTBehaviour, TEventData class
Top
Methods
  NameDescription
Protected methodGetEvent
Returns the event from the specified target to observe.
Protected methodGetEvents
Returns the events from the specified target to observe.
Protected methodOnEvent
Called when an the event on the target occurred that this command is listening to. By default this will invoke the command with the received event data, but derived commands may modify the event data first.
Protected methodRegisterListeners
Called when the command should add listeners to the specified target to be informed when about an event that would trigger the command.
(Overrides UnityEventCommandBaseTBehaviourRegisterListeners(TBehaviour).)
Protected methodRemoveListeners
Called when the command should remove its listeners from the specified target.
(Overrides UnityEventCommandBaseTBehaviourRemoveListeners(TBehaviour).)
Top
See Also