Open kyubuns opened 3 years ago
Right now, what happens is, UniRX is still trying to call LateUpdate on your object. But it doesn't exist anymore. This also happens during runtime if you decide to remove the object in the inspector.
You could make it work by adding AddTo(this), so it unsubscribes when the GameObject has been destroyed:
Observable.EveryLateUpdate()
.Subscribe(x => Debug.Log("a"))
.AddTo(this);
When I set Domain Reload to disable in PlayerSettings > Editor > Enter PlayMode Options, the following code throws NullReferenceExteption. After setting Domain Reload to disable, enter PlayMode twice.
Environment