I have been working on integrating the Unity Avatar Creator sample in my project and was wondering what the best approach was to a few tasks
Everything is initialized correctly when the UI (Statemachine is first enabled). You can proceed to generate/edit a new avatar and the end exit the UI. What is the proper method for reinitializing the state for another pass?
The camera is moved and not restored when the statemachine is entered/exited. Would it be possible to add support for that in the package?
If one just completed an edit, exited the statemachine and wanted to go back and make some adjustments is that possible or only if the player is logged in and the avatar saved to their account?
1. Everything is initialized correctly when the UI (Statemachine is first enabled). You can proceed to generate/edit a new avatar and the end exit the UI. What is the proper method for reinitializing the state for another pass?
I think easiest way would be to reload the scene (check SceneManager LoadScene API Unity).
2. The camera is moved and not restored when the statemachine is entered/exited. Would it be possible to add support for that in the package?
You will need to add that in your script to save the Transform Position and Rotation of the camera when it changes, and use that transform info to apply it to the camera when you load the scene again.
3. If one just completed an edit, exited the statemachine and wanted to go back and make some adjustments is that possible or only if the player is logged in and the avatar saved to their account?
Yes, the user must be logged in, but we have a simpler approach that you can use to avoid forcing users to go through the register/login process, which in some cases can break the user flow.
You can use Anonymous User Accounts and saving the User id + Auth-token in playerprefs. You can read more about this in our documentation.
Currently made a copy of the UI and directly imported to my main scene so I did not rely on the supplied scene. I might give that approach some thought.
I was doing this but with the 6.2.4 upgrade something changed and even though the camera coords were being saved something seemed to be overriding my restore. It would be good if your package could do the save and restore as part of the load and exit?