docs.unity3d.com
    Show / Hide Table of Contents

    Class EventBus

    Inheritance
    Object
    EventBus
    Namespace: Unity.VisualScripting
    Syntax
    public static class EventBus

    Methods

    Register<TArgs>(EventHook, Action<TArgs>)

    Declaration
    public static void Register<TArgs>(EventHook hook, Action<TArgs> handler)
    Parameters
    Type Name Description
    EventHook hook
    Action<TArgs> handler
    Type Parameters
    Name Description
    TArgs

    Trigger(String, GameObject)

    Declaration
    public static void Trigger(string name, GameObject target)
    Parameters
    Type Name Description
    String name
    GameObject target

    Trigger(EventHook)

    Declaration
    public static void Trigger(EventHook hook)
    Parameters
    Type Name Description
    EventHook hook

    Trigger<TArgs>(String, GameObject, TArgs)

    Declaration
    public static void Trigger<TArgs>(string name, GameObject target, TArgs args)
    Parameters
    Type Name Description
    String name
    GameObject target
    TArgs args
    Type Parameters
    Name Description
    TArgs

    Trigger<TArgs>(EventHook, TArgs)

    Declaration
    public static void Trigger<TArgs>(EventHook hook, TArgs args)
    Parameters
    Type Name Description
    EventHook hook
    TArgs args
    Type Parameters
    Name Description
    TArgs

    Unregister(EventHook, Delegate)

    Declaration
    public static void Unregister(EventHook hook, Delegate handler)
    Parameters
    Type Name Description
    EventHook hook
    Delegate handler
    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