I am moving animated objects between other objects that animate them, and I got it to work in most situations. However, in the situations that don’t work, I can fix it in the inspector by changing the “Disable Animation When Offscreen” value to the animation that’s actually animating the object.
Why is there no script access to this? And why is this value not explained in the documentation anywhere? I’m assuming I can work around it, which I will do by forcing animations to update offscreen, but that is NOT optimal for me.
Anyway, I feel this should be accessible by script and hope it’s easy enough for someone to add!
Ok now I’m even more confused! I set updateWhenOffscreen = true and now the animation doesn’t work even when I fix it in the Inspector! Maybe I am missing something. Can someone please inform me of what’s happening?
That is updateWhenOffscreen (bool), but I need disableAnimationWhenOffscreen (Animation).
Though it appears I got it to work as long as I keep these objects attached to a parent with an animation, and just point Disable Animation When Offscreen to that parent animation.