Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Device Model Config Editor"))
     {
         DeviceModelConfigEditorWindow.OpenWindow((DeviceModelConfig)target);
     }
 }
        public static void OpenWindow(DeviceModelConfig deviceModelConfig)
        {
            if (deviceModelConfig == null)
            {
                return;
            }

            DeviceModelConfigEditorWindow window = GetWindow <DeviceModelConfigEditorWindow>(true, "Device Model Config Editor");

            window.m_Config = deviceModelConfig;
            window.minSize  = new Vector2(460f, 400f);
        }