How to execute two animations sequentially on the Entity of RealityView

When developing a VisionPro application, I need to first move and then rotate the Entity in RealityView.

How can these two animations be executed sequentially? (I tested it and executing it simultaneously would result in incorrect animation positions)

Answered by DTS Engineer in 788504022

Hello @xuhengfei,

You can sequence animations using the sequence(with:) static function on AnimationResource.

I suspect you are creating your animations right now via the move method. That method doesn't give you an AnimationResource, so to take advantage of sequencing, you can create your animations using FromToByAnimation.

Accepted Answer

Hello @xuhengfei,

You can sequence animations using the sequence(with:) static function on AnimationResource.

I suspect you are creating your animations right now via the move method. That method doesn't give you an AnimationResource, so to take advantage of sequencing, you can create your animations using FromToByAnimation.

How to execute two animations sequentially on the Entity of RealityView
 
 
Q