Is it possible to either unregister or register the Tick function dynamically. I have some code that I only ever want to be run if the object is owned by a Local Player (not necessarily always a client either), and I want to avoid calling ‘IsLocallyControlled’ every tick to work that out. It’d be much more efficient for me to be able to only register the tick function on the players game.
However, from the looks of it you can only declare the actor tick group in the Constructor, and it’s not safe to call some functionality there (to determine if it’s a local player or not). Any other way I can do this? Otherwise I have a whole bunch of actors ticking who don’t need to be, and not doing anything most of the time too.