docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method Subscribe

    Subscribe(Action<T>)

    Register callback to the event that is invoked when the value is updated.

    Declaration
    IEventBinding Subscribe(Action<T> callback)
    Parameters
    Type Name Description
    Action<T> callback

    Callback to register.

    Returns
    Type Description
    IEventBinding

    IEventBinding which allows for safe and easy bind, unbind, and clear functions.

    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)