Answered

Save UMotion Project File

_alphaBeta_ 10 months ago updated by Peter - Soxware Developer 10 months ago 1

Is there a way to explicitly save a UMotion Project File? Through the use of source code control, I'm finding the project file isn't always saved until fully quitting Unity, which is not ideal for my workflow. The other day I missed committing all the changes to a UMotion project file since I had Unity open during the commit.

In another example just now, I had previously committed the current project file since I had a character posed just right and didn't want to lose hours of work. I wanted this backup since I was next going to experiment with adding a child GameObject to the character in scene. When adding the character to the pose editor afterwards, I was promoted for a rig update, which I did while trying to figure out how I wanted to set this all up. Using external source code control, I wanted to revert this change out for the moment and reload the project, but there were no changes detected in the project file until I closed Unity. From there I could revert out the change and reloaded Unity and the UMotion project. So it definitely seems like the project state is held in memory and not always written to disk as expected.


P.S. I'm thinking I can safely ignore "EditorStates.asset" and perhaps other files in the <\UMotionEditor\Data\> folder from source code control. Is any vital information stored in these files? So far they seem like current state files that will change often and tracking them in a source code control system would be nuisance.

UMotion Version:
1.29p02
Unity Version:
2021.3.26f1

Answer

Answer
Answered

Hi,
thank you very much for your support request.

In Unity, asset files (like the UMotion project file, materials, settings, etc.) are saved if you click on "File --> Save Project". Regular "Save" in Unity only saves the currently opened scene file.
Afaik, prefabs are the only exception to the rule (they are saved on modification).

Yes, you can ignore the files in "<unityproject>/Assets/.../UMotionEditor/Data" in your version control. You can also ignore the files in "<unityproject>/UMotionData" (contains mostly the auto backup files).

Please let me know in case you have any follow-up questions.

Best regards,
Peter

GOOD, I'M SATISFIED

Thanks, forgot about the "Save Project" for assets like this. Also, thanks for the version control clarification.

Satisfaction mark by _alphaBeta_ 10 months ago
Answer
Answered

Hi,
thank you very much for your support request.

In Unity, asset files (like the UMotion project file, materials, settings, etc.) are saved if you click on "File --> Save Project". Regular "Save" in Unity only saves the currently opened scene file.
Afaik, prefabs are the only exception to the rule (they are saved on modification).

Yes, you can ignore the files in "<unityproject>/Assets/.../UMotionEditor/Data" in your version control. You can also ignore the files in "<unityproject>/UMotionData" (contains mostly the auto backup files).

Please let me know in case you have any follow-up questions.

Best regards,
Peter