mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 02:35:06 +08:00
fix: "extract menu to objects" does not set the target of its menu group properly (#1304)
Closes: #1297
This commit is contained in:
parent
11a62c88d4
commit
5bafb0ba9d
@ -368,7 +368,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
||||
Localization.ShowLanguageUI();
|
||||
ShowLanguageUI();
|
||||
}
|
||||
|
||||
private string ObjectHierarchyOrder(Component arg)
|
||||
@ -415,6 +415,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
var group = installer.gameObject.AddComponent<ModularAvatarMenuGroup>();
|
||||
var menuRoot = new GameObject();
|
||||
menuRoot.name = "Menu";
|
||||
|
||||
group.targetObject = menuRoot;
|
||||
|
||||
Undo.RegisterCreatedObjectUndo(menuRoot, "Extract menu");
|
||||
menuRoot.transform.SetParent(group.transform, false);
|
||||
foreach (var control in menu.controls)
|
||||
|
Loading…
Reference in New Issue
Block a user