Jump to content

Play FBX animation when runtime starts: BEGINNER


photo

Recommended Posts

I have imported an FBX with animation data.

The animation plays when selecting preview animation.

On runtime the FBX is idle.

 

How do I play the animation when runtime starts?

Thanks.

import.png

preview.png

runtime.png

Link to comment

Hello @jamespukka!
If you simply want the preview animation to play back at run time endlessly:

  • Enable the Loop flag in the Mesh Skinned parameters,
  • Play the animation,
  • Save the world

and now you can launch the app and the animation will play back in a loop.

For finer control you'll need to manage the animation layers using the ObjectMeshSkinned class of C# API. You can find samples in the C# Component Samples demo.

Thanks!

Link to comment
×
×
  • Create New...