Search Results for

    Show / Hide Table of Contents

    Class Subject

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

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

    Usage (in the inspector of Unity Editor):

    1. Add this component or prefab to the scene.
    2. Specify the observers to notify.

    Properties

    ClassName

    Gets the class name of the subject.

    Declaration
    public virtual string ClassName { get; }
    Property Value
    Type Description
    System.String
    Remarks

    Override this property to change the class name.

    Methods

    Notify()

    Notify all observers.

    Declaration
    public virtual void Notify()

    See Also

    Observer
    ObserverHub
    In This Article
    Back to top Example Unity documentation