Search Results for

    Show / Hide Table of Contents

    Class Observer

    The class of the observer side in the publish-subscribe model.

    Inheritance
    System.Object
    Observer
    ObserverHub
    Namespace: black.kit.toybox
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class Observer : UdonSharpBehaviour
    Remarks

    Usage:

    1. (in the inspector of Unity Editor) Add this component or prefab to the scene.
    2. Implement the OnNotify method to receive a call from the subject.

    Methods

    OnNotify(Subject)

    Implement a callback when a call is received from the subject.

    Declaration
    public abstract void OnNotify(Subject subject)
    Parameters
    Type Name Description
    Subject subject

    The subject that called the observer.

    See Also

    Subject
    ObserverHub
    In This Article
    Back to top Example Unity documentation