docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    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
    IEventBinding
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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.

    In This Article
    Back to top
    Copyright © 2024 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)