OOps, I just found out that if I disable an actor in the hierarchy tree, the script on that actor will still be enabled and run in game mode, for example the sample with the mobile and the platform selector script is running on the game mode window (not in the editor window) even if I disable the mobile actor, is this a feature intended?
Do you have specific reproduction steps? I’m sure the OnUpdate
and other tick events are not called for scripts attached to disabled actors.
Hello, OK I found out, I checked the code of the PlatformSelector.cs and I noticed that the code is forcing the active flag if the platform is found on the list at awake so even if I disabled the actor in the hierarchy it was set back to active so never mind, there is no issue, I am sorry.