From 6cb59f5feaa9b541546e93e3954aad349737e966 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Thu, 3 Aug 2023 17:07:34 +0900 Subject: [PATCH] fix: MA is not performed in Awake if enter playmode settings is enabled --- Packages/nadena.dev.modular-avatar/Editor/ApplyOnPlay.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Packages/nadena.dev.modular-avatar/Editor/ApplyOnPlay.cs b/Packages/nadena.dev.modular-avatar/Editor/ApplyOnPlay.cs index 81737ddd..37059fda 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/ApplyOnPlay.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/ApplyOnPlay.cs @@ -74,6 +74,10 @@ namespace nadena.dev.modular_avatar.core.editor { armedSource = RuntimeUtil.OnDemandSource.Start; } + else if (obj == PlayModeStateChange.EnteredEditMode) + { + armedSource = RuntimeUtil.OnDemandSource.Awake; + } } } -} \ No newline at end of file +}