static void CreateBackground() { var freeLayout = GameObject.FindObjectOfType(typeof(MadLevelFreeLayout)); if (freeLayout != null) { EditorUtility.DisplayDialog( "Create Background", "Free layout has different method of creating backgrounds (this is temporary and will be fixed in future versions). " + "You should look for a 'Background Texture' field in the free layout inspector.", "OK"); Selection.activeObject = freeLayout; return; } MadLevelBackgroundTool.ShowWindow(); }
static void CreateBackground() { MadLevelBackgroundTool.ShowWindow(); }