Objects disappearing automatically - Bug?

Hi there…

I’m a bit frustrated by this. Here’s the thing:

I have two cars animated. They are Maya files with keyframe animation brough into Unity. The animation just follows a path.

By clicking the mouse, I control the speed of the animation of car 1; so if I click faster, the animation goes faster, giving the impression the car 1 goes faster.

Now here’s the strange thing: if I pass over car 2, and then I stop clicking, car 2 should pass me back at some point. However, the car 2 never appears back.

It’s like it’s been disabled. But, if I go into the Hierarchy while in play, select the car 2, and press “f” to center the Scene view into the car 2, then it magically appears where it actually should be (i.e.: in front of car 1). But, also, the “f” positioned me where the object disappeared last time. If I press the “f” again, then it takes me to where the object is now.

Any ideas?

This never happens if the car 2 remains into the camera’s frustrum. Only one it’s out of it.

Thanks a lot!

Nico.

Looks like Unity stops the object movtion as soon as the object leaves the camera frustum.

I mean, the animation still plays (isPlaying == true), but the object’s position, and the animation’s state.time just lock down and stop refreshing.

Is there any way to avoid this?

Old thread revival I know, sorry.
Just for anyone forum-searching for a fix (like me :P)

When I read Nvarcha’s “Looks like Unity stops the object movtion as soon as the object leaves the camera frustum.”
I clicked.

SOLUTION:
1 Select your animated model in Unity
2 Untick “Animate Only If Visible”
3 ???
4 Profit

Edit: …ok I lied. Wtf this is annoying T_T
Where you using fbx models by any chance?

Edit2: Eureka! Its always something simple -_-

(REAL) SOLUTION:
1 Select your animated model in Unity
2 Tick “Animate When Offscreen”
3 ???
4 Profit