FBX animation error froma Maya to Unity

Hi… So I made my animation in Maya with two differents objects at the same position, sixe and everything, they justa have different animations but there is a point where I switch off the visibility of one of them to turn on the other’s… My problem is when I export that animation to .fbx and import it to Unity… When I play the animation in Unity, the second object that should have the visibility off, appears since the begining making my two objects to appear at the same time… Any solution or suggestion?

This is expected behavior. Fbx does not support visibility tracks therefore the visibility animation created in Maya will not show in Unity.
Luckily this is simple to accomplish in Unity, and can be accomplished numerous ways.

  • turn on/off the mesh render component when you want to switch the visibility
  • Animate the transparency element of the shader applied to the objects
  • Animate the value of a alpha channel of the texture applied to the objects

OR if you prefer to fix the issue in Maya the animation keys/curves can be copied from one object to the other, so only one object will have both animation tracks applied, removing the need to have two separate animated objects, although I’m sure there is a good reason you choose to animate like this anyway.