Unity-Technologies / Animation-Instancing

This technique is designed to instance Characters(SkinnedMeshRender).
Other
1.63k stars 296 forks source link

AnimationInstancingMgr instance can be spawned from OnDestroy if Unity Editor session ends before AnimationInstancing.Start() is called #81

Open LASpencer opened 4 years ago

LASpencer commented 4 years ago

If a Unity Editor session is stopped after an AnimationInstancing object has been loaded, but before any have called Start(), the first time AnimationInstancingMgr.Instance is called will be when the AnimationInstancing object is destroyed.

This results in the error message

Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
The following scene GameObjects were found:
(singleton) AnimationInstancing.AnimationInstancingMgr