Table of Contents

Observable UnityEvent

Runtime/Reactive/ObservableUnityEvent.cs   HeaderDoc

(c) 2025 Sator Imaging, Licensed under the MIT License https://github.com/sator-imaging/Unity-Fundamentals

How to Use

uGuiButton.onClick.Subscribe(() => UnityEngine.Debug.Log("Button.onClick"))
    .AddTo(disposables);         // add to collection to unregister later
    .BindTo(cancellationToken);  // or, unregister event automatically when token is canceled

slider.onValueChanged.Subscribe(val => UnityEngine.Debug.Log(val))
    .BindTo(this.destroyCancellationToken);