I just found that Any portrait is updating the animations when the game objects are not visible.
In my case, I have some enemies patrolling while these are not visible Any Portrait still update the animations. So I was wondering if there's a way to pause these updates or I just have to manually disable the ApPortrait component. I'm not sure if this happens with mecanim.
I check the API but I didn't find a function for this case.
Hi!
Code execution based on visibility is the same in the way you use apAnimPlayManager rather than Mecanim!
If the character is hidden by calling the Hide() function, the main codes of Update and LateUpdate do not work as in the case of Mecanim.
If what you need is to mean "the character went off-screen and couldn't render", this is not supported by AnyPortrait.
In this case, please write a separate script to call Hide().
Thanks.