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); }
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); }