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

AdaptivePerformanceScaler.ApplyProfileSettings

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

protected void ApplyProfileSettings(AdaptivePerformanceScalerSettingsBase setting);

Parameters

Parameter Description
setting The default-mode setting from the active profile; its Get*ModeSetting() accessors supply the per-mode overrides.

Description

Hydrates this scaler from a profile setting in one shot: installs the per-mode override for every mode (default / battery). Enabled state rides inside each mode's settings struct, so applying the per-mode structs is sufficient — AdaptivePerformanceScaler.Enabled reads from the active struct via AdaptivePerformance.AdaptivePerformanceScaler.ActiveSetting. Intended for subclasses to call from Awake with their own typed setting, e.g. ApplyProfileSettings(m_Settings.scalerSettings.AdaptivePhysics). No-op if setting is null.