umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
726 stars 167 forks source link

DynamicCharacterAvatar prefab is unpacks when saving scene when Editor Time Generation is false #368

Closed Arlorean closed 3 months ago

Arlorean commented 2 years ago

DynamicCharacterAvatar prefab is unpacks when saving scene when Editor Time Generation is false A prefab with a DynamicCharacterAvatar component where the Editor Time Generation is set to false will unpack itself into a scene when that scene is saved. This shouldn't happen, the prefab should remain in place.

Environment (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. In Unity Hub Add Unity 2020.2.2f1 project
  2. New URP project
  3. Import UMA 2.12 via Package Manager
  4. UMA->SRP->Convert to URP
  5. UMA->Rebuild From Project
  6. File->New Scene->Basic (Built-In)
  7. Drag UMA->Getting Started->UMA_GLIB into scene
  8. In the Project tab, select the prefab UMA->Getting Started->UMADynamicCharacterAvatar
  9. In Inspector uncheck Editor Time Generation to make it be false
  10. Drag UMA->Getting Started->UMADynamicCharacterAvatar prefab into scene
  11. File->Save->NewScene.unity
  12. BUG: The UMADynamicCharacterAvatar prefab has been unpacked in the scene on Save

Expected behavior It is expected that the prefab will NOT unpack itself since we don't want editor time generation of the UMA, only runtime.

Additional context Keeping UMA character prefabs intact is tough going for our artist who keeps breaking them!

Jaimi commented 3 months ago

Fixed in previous version.