mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-02 03:32:56 +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,
|
-999999,
|
||||||
(Action<VRCAvatarDescriptor>)(av => VRCBuildPipelineCallbacks.OnPreprocessAvatar(av.gameObject))
|
(Action<VRCAvatarDescriptor>)(av => VRCBuildPipelineCallbacks.OnPreprocessAvatar(av.gameObject))
|
||||||
});
|
});
|
||||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnPlayModeStateChanged(PlayModeStateChange obj)
|
private static void OnPlayModeStateChanged(PlayModeStateChange obj)
|
||||||
{
|
{
|
||||||
if (obj == PlayModeStateChange.ExitingPlayMode)
|
if (obj == PlayModeStateChange.EnteredEditMode)
|
||||||
{
|
{
|
||||||
Util.DeleteTemporaryAssets();
|
Util.DeleteTemporaryAssets();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user