ドキュメント

Unity Engine

Unity Engine

OpenAndScrollTo(Section, string)

Opens the player settings, expands the given section, and scrolls to the given setting.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void OpenAndScrollTo(PlayerSettingsInspectorUtility.Section section, string settingLabel)

Parameters

section

The section that contains the setting.

settingLabel

The label of the setting, as shown in the Inspector, in English.

Remarks

Opens the Player section of the Project Settings window on the active build target's tab. When the active build profile has its own player settings, opens the Build Profiles window instead, without scrolling. The setting is found by the label it draws in the expanded section, so it only reaches settings that are directly visible there: settings nested inside a foldout within the section, sections added by platform extensions, and sections or settings that don't exist for the active platform are not reachable. When the setting is not found, the window still opens and a warning is logged.