diff --git a/Assets/Editor/MyUIUtil.cs b/Assets/Editor/MyUIUtil.cs index 6b60bdaaf..f9cf641eb 100644 --- a/Assets/Editor/MyUIUtil.cs +++ b/Assets/Editor/MyUIUtil.cs @@ -390,11 +390,13 @@ public static class MyUIUtil layout.childForceExpandWidth = false; layout.childForceExpandHeight = false; layout.spacing = 5; - obj.AddComponent().m_Content = obj; + var tabbase = obj.AddComponent(); + tabbase.m_Content = obj; obj.GetComponent().sizeDelta = Vector2.zero; Undo.RegisterCreatedObjectUndo(obj, layoutName); GameObject tab = new GameObject("tab_"); + tabbase.go_card = tab; tab.transform.SetParent(obj.transform, false); var rt = tab.AddComponent(); rt.sizeDelta = new Vector2(110, 60); @@ -412,7 +414,7 @@ public static class MyUIUtil bgRect.offsetMin = new Vector2(0, 0); // Custom Stretch 적용 bgRect.offsetMax = new Vector2(0, 0); // Custom Stretch 적용 i_bg.sprite = AssetDatabase.LoadAssetAtPath("Assets/ResWork/UI/NewRes/bg/whitebg.png"); - tab_bg.AddComponent