Class BindingsGroup
Container class for IEvent bindings. Helps unbind or clear bindings in bulk.
Inherited Members
Namespace: Unity.XR.CoreUtils.Bindings
Syntax
public class BindingsGroup
Methods
AddBinding(IEventBinding)
Register binding to group
Declaration
public void AddBinding(IEventBinding binding)
Parameters
Type | Name | Description |
---|---|---|
IEventBinding | binding | Binding to register |
Bind()
Triggers binding action on all registered bindings.
Declaration
public void Bind()
Clear()
Triggers unbind action on all bindings and destroys all stored binding actions, as well as clears the group of all registered bindings.
Declaration
public void Clear()
ClearBinding(IEventBinding)
Clear a specific binding and remove it from the binding group.
Declaration
public void ClearBinding(IEventBinding binding)
Parameters
Type | Name | Description |
---|---|---|
IEventBinding | binding | Binding to clear |
Unbind()
Triggers unbind action all registered bindings without clearing them.
Declaration
public void Unbind()