Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Help Wanted Record a scene during runtime and save it to a animation clip

Discussion in 'Animation' started by rohkesam, Jul 28, 2021.

  1. rohkesam


    Jul 28, 2021
    I'm trying to save the transforms of multiple objects in my scene into an animation clip during runtime. The transforms are localRotation and localPosition. Right now I'm using the GameObjectRecorder, however, this is only available in Unity editor. I play through the simulation once and have the GameObjectRecorder record the scene, and then I save it to a clip and play it back. Is there any alternative to GameObjectRecorder because I need to build the project. I explored creating animation curves except I need to save multiple properties of multiple objects, and all of the objects are moving in different directions. This would result in an animation curve for each object, which isn't a problem if I can save multiple animation curves to a single animation clip, but I don't know if that's possible.