docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SubscribeAndUpdate

    SubscribeAndUpdate(Action<T>)

    Triggers the callback inline, followed by the Subscribe(Action<T>) function.

    Declaration
    public IEventBinding SubscribeAndUpdate(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.

    Implements
    IReadOnlyBindableVariable<T>.SubscribeAndUpdate(Action<T>)
    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)