Closed artsemgorbatchev closed 3 months ago
Happened to my project too: https://github.com/ArtichaTM/Nova3D/issues/2 Tried to repeat this, but unsuccessful. If summarize what scripts make this issue in current project:
ReactiveProperty<bool> Paused
to this script.DisposableBag Disposables
and this line in Start():
MainLogic.Instance.Paused
.Skip(1) // Skipping first call because Paused by default
.Where(x => x == true)
.Subscribe(_ => Pause())
.AddTo(ref Disposables)
;
Pause() content doesn't matter for now. That fact is, if dispose Disposables on first instantiate then on second instantiate ReactiveProperty<bool> Paused
won't call Pause() for some reason
I would appreciate it if you could provide a minimal reproducible project. However, v1.1.0-v1.1.9 had issues with unsubscribing from ReactiveProperty, so I believe the problem you mentioned was occurring. Which version were you experiencing this issue with? Please try the latest v1.1.10.
Updated 1.1.2 -> 1.1.10, problem fixed. I forgot that R3 released in last month and updates are necessary for such projects. Thanks, @neuecc
In my case the update did not help. The problem occurs on v1.1.11
@artsemgorbatchev Did you update both the Unity Package and the NuGet package? For me, this fixed it, too.
I have only one EquipmentUI element in my game. when I try to update this element (initialize it a second, third, and so on time) something goes wrong. UpdateUIWithDelay is not called. I will be grateful if you can help me. If necessary, I can provide more information.