void CreateFree(MadRootNode root, MadLevelIcon icon) { var panel = MadTransform.FindChild <MadPanel>(root.transform); var freeLayout = MadLevelFreeTool.CreateUnderPanel(panel); freeLayout.iconTemplate = icon; freeLayout.dirty = true; }
static void CreateFreeLayout() { var panel = MadPanel.UniqueOrNull(); if (panel != null) { MadLevelFreeTool.CreateUnderPanel(panel); } else { ScriptableWizard.DisplayWizard <MadLevelFreeTool>("Create Free Layout", "Create"); } }