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

IAdaptivePerformanceSettings.ActiveScalerProfile

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

public AdaptivePerformanceScalerProfile ActiveScalerProfile;

Description

The currently active scaler profile, or null if no profile has been loaded. Only one scaler profile is active at a time. Call IAdaptivePerformanceSettings.LoadScalerProfile to activate one. The getter does not auto-bind to the default profile: a previous lazy initialization here ran before the scalers were actually bound to the profile, which caused LoadScalerProfile's "already loaded" early-out (a Name comparison against ActiveScalerProfile) to short-circuit on first call and skip ApplyScalerProfileToAllScalers, leaving every default scaler with its inline-default settings (base names, default bounds, disabled) until something else triggered a re-apply. Returning null until LoadScalerProfile runs makes "no profile loaded" an honest, observable state and lets the early-out work.