mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-01 19:22:55 +08:00
Always cleanup assets when entering edit mode
This commit is contained in:
parent
5c0b62f295
commit
4d6a143e79
@ -50,16 +50,16 @@ namespace net.fushizen.modular_avatar.core.editor
|
||||
-999999,
|
||||
(Action<VRCAvatarDescriptor>)(av => VRCBuildPipelineCallbacks.OnPreprocessAvatar(av.gameObject))
|
||||
});
|
||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||
}
|
||||
|
||||
private static void OnPlayModeStateChanged(PlayModeStateChange obj)
|
||||
{
|
||||
if (obj == PlayModeStateChange.ExitingPlayMode)
|
||||
if (obj == PlayModeStateChange.EnteredEditMode)
|
||||
{
|
||||
Util.DeleteTemporaryAssets();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user