public static void Init (UPALayer layer) { // Get existing open window or if none, make new one window = (UPALayerSettings)EditorWindow.GetWindow (typeof (UPALayerSettings)); #if UNITY_4_3 window.title = layer.name + " - Settings"; #elif UNITY_4_6 window.title = layer.name + " - Settings"; #else window.titleContent = new GUIContent (layer.name + " - Settings"); #endif window.position = new Rect(Screen.width/2 + 260/2f,Screen.height/2 - 80, 360, 170); window.ShowPopup(); window.layer = layer; }
public static void Init(UPALayer layer) { // Get existing open window or if none, make new one window = (UPALayerSettings)EditorWindow.GetWindow(typeof(UPALayerSettings)); #if UNITY_4_3 window.title = layer.name + " - Settings"; #elif UNITY_4_6 window.title = layer.name + " - Settings"; #else window.titleContent = new GUIContent(layer.name + " - Settings"); #endif window.position = new Rect(Screen.width / 2 + 260 / 2f, Screen.height / 2 - 80, 360, 170); window.ShowPopup(); window.layer = layer; }