Struct EventBinding
Container struct holding a bind and unbind action. Useful for storing bind and unbind actions at the point of registration to avoid keeping track of the binding signature, and works with anonymous functions.
Implements
Inherited Members
Namespace: Unity.XR.CoreUtils.Bindings
Assembly: solution.dll
Syntax
public struct EventBinding : IEventBinding
Constructors
| Name | Description |
|---|---|
| EventBinding(Action, Action) | Create an event binding container. |
Properties
| Name | Description |
|---|---|
| BindAction | Action to bind to callback. |
| IsBound | True if Bind function was called and binding is currently active. |
| UnbindAction | Action to unbind from callback. |
Methods
| Name | Description |
|---|---|
| Bind() | Trigger binding action. |
| ClearBinding() | Trigger unbinding action and then destroy all binding action references. |
| Unbind() | Trigger unbinding action. |