user2587878 user2587878 - 24 days ago 8
C# Question

unity & kinect, saving animation

I am working on a project/game in which a physical therapist can use a Kinect to record an exercise, and it should be played back with an avatar. I have it working with animation clips, but I would like to store each exercise for later use. Is there a way I can save it to a file?

Sorry if I am not specific enough, I am very new to unity and programming in general. Thanks again!

Answer

You're probably looking for Serialization. Serialization allows you to save the state of any C# object to an XML file, and reload the object from the XML file later.

Further Reading
How to Write Object Data to an XML File
How to Read Object Data from an XML File

Comments