docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023