Beispiel #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Device Model Config Editor"))
     {
         DeviceModelConfigEditorWindow.OpenWindow((DeviceModelConfig)target);
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public static void OpenWindow(DeviceModelConfigCustom deviceModelConfigCustom)
        {
            if (deviceModelConfigCustom == null)
            {
                return;
            }

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

            window._mConfigCustom = deviceModelConfigCustom;
            window.minSize        = new Vector2(460f, 400f);
        }