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!

  • Like 1
Link to comment
  • 1 year later...
On 7/26/2022 at 2:03 PM, thomalex said:

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!

Hi~ I added a capsule collider on the skinned mesh.

When it is collided with other objects, it will fall. How should I set the constraints?

1.png

Link to comment
×
×
  • Create New...