Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Device Model Config Editor"))
     {
         DeviceModelConfigEditorWindow.OpenWindow((DeviceModelConfig)target);
     }
 }
Esempio n. 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);
        }
Esempio n. 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);
        }