Version: 2021.3
언어: 한국어

SettingsService.OpenProjectSettings

매뉴얼로 전환
public static EditorWindow OpenProjectSettings (string settingsPath);

파라미터

settingsPath Settings paths of the item to select (for example, 'Project/Player' or 'Project/Quality').

반환

EditorWindow Returns an instance to the Settings window.

설명

Open the Project Settings window with the specified settings item already selected.

using UnityEditor;
using UnityEngine;

class MyCustomWindow : EditorWindow { void OnGUI() { if (GUILayout.Button("Open my custom preference")) { SettingsService.OpenUserPreferences("Preferences/MyCustomPref"); }

if (GUILayout.Button("Open my custom project settings")) { SettingsService.OpenProjectSettings("Project/MyCustomSettings"); } } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961