I want to implement the effect of cutting character animations at runtime.

I want to edit animations at runtime. After reviewing the functions of AnimationSequence, I found the ResizeNumberOfFrames method under GetController(). However, both GetController() and GetDataModel() only work in the editor state. Is there a way to make these methods work at runtime, or is there any other function that can replace these methods?

Can you explain why you need to cut the animation instead of just stoping it?

I want to create functionality similar to Maya or Blender for cutting and stitching multiple animations together at runtime to create a new animation. The ResizeNumberOfFrames method works well in the editor environment, but it cannot be used in the runtime environment because GetController() is not available.

Maybe I need to create a new AnimationSequence class myself? Could you share your thoughts on this?