@dgoodrich I’m enjoying SDK v1.0.2.
I would like exactly ONE “Hero” subscription to exist and to live as long as the Unity play session. By default, they last longer. Suggestions?
Perhaps I could call
RemoveSubscriptions when unity
OnDestroy fires, but that is probably too “late” if called as the session ends. I did not try yet.
For code-separation preference I created
class MoralisLiveQueryCallbacksForHero : MoralisLiveQueryCallbacks<Hero> which I don’t believe causes any issues.
I tried to call
AddSubscription as shown…
MoralisLiveQueryCallbacksForHero callbacks = new MoralisLiveQueryCallbacksForHero();
MoralisQuery<Hero> moralisQuery = MoralisInterface.GetClient().Query<Hero>();
MoralisLiveQueryController.AddSubscription<Hero>("Hero", moralisQuery, callbacks);
But still get the result per image when the Unity play session starts (for the 5th time in this example)