playMaker

Author Topic: optimising prefab scripts when far away from the player  (Read 1237 times)

mooblegum

  • Playmaker Newbie
  • *
  • Posts: 18
optimising prefab scripts when far away from the player
« on: December 07, 2020, 10:43:30 AM »
Hello everyone!

I have a question concerning optimization. This is for a mobile project.
Actually on my project, all the prefabs, enemies, moving platform... continue to be animating even when the player is far away. The enemies do there patrolling, they are not doing heavy calculation but still I wonder if it is optimal...
should I disactivate, stop enemies and other prefabs when  they are far from the player ?  If yes how to do it simply?

Thank you for your input!!