Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

PlayerSettingsInspectorUtility.OpenAndScrollTo

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void OpenAndScrollTo(Section section, string settingLabel);

Parameters

Parameter Description
section The section that contains the setting.
settingLabel The label of the setting, as shown in the Inspector, in English.

Description

Opens the player settings, expands the given section, and scrolls to the given setting.

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.