docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BindingsGroup

    Container class for IEvent bindings. Helps unbind or clear bindings in bulk.

    Inheritance
    object
    BindingsGroup
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CoreUtils.Bindings
    Assembly: Unity.XR.CoreUtils.dll
    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()
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)