0

What's the different between:

  • UpdateAsObservable()
  • EveryUpdate()

in UniRx?

Are they the same?

hellow
  • 12,430
  • 7
  • 56
  • 79

1 Answers1

0

Observable.EveryUpdate is defined as a static method, so it can be called from a place other than MonoBehaviour. Internally, the execution timing of CoreThreadDispatcher's corruption is notified. For your reference, you need to be careful when using the IDisposable of the subscribers correctly (you will need to paste AddTo etc.)

ObservableUpdateTrigger is defined in the UniRx.Triggers namespace. If you leave UniRx.Triggers outside of Using, you can call UpdateAsObservable () directly. The entity is the ObservableUpdateTrigger AddComponent is automatically added to the call at the time of the call (you do not have to worry about the presence of the trigger when you actually use it) ObservableMonoBehaviour and internal structure are the same

JH.Noh
  • 41
  • 2