Class ProviderSettingsEditor
This is a custom Editor base for Provider Settings. It displays provider general settings and you can use it to extend provider settings editors to display custom provider settings.
Inherited Members
Namespace: UnityEditor.AdaptivePerformance.Editor
Syntax
public class ProviderSettingsEditor : Editor, IPreviewable, IToolModeOwner
Fields
m_ShowDevelopmentSettings
Whether the development settings are collapsed or not.
Declaration
public bool m_ShowDevelopmentSettings
Field Value
Type | Description |
---|---|
Boolean |
m_ShowIndexerSettings
Whether the indexer settings are collapsed or not.
Declaration
public bool m_ShowIndexerSettings
Field Value
Type | Description |
---|---|
Boolean |
m_ShowRuntimeSettings
Whether the runtime settings are collapsed or not.
Declaration
public bool m_ShowRuntimeSettings
Field Value
Type | Description |
---|---|
Boolean |
m_ShowScalerSettings
Whether the scaler settings are collapsed or not.
Declaration
public bool m_ShowScalerSettings
Field Value
Type | Description |
---|---|
Boolean |
Methods
DisplayBaseDeveloperSettings()
Displays the base developer settings. Requires DisplayBaseSettingsBegin() to be called before and DisplayBaseSettingsEnd() after as serialization is not taken care of.
Declaration
public void DisplayBaseDeveloperSettings()
DisplayBaseIndexerSettings()
Displays the base indexer settings. Requires the serializedObject to be updated before and applied after as serialization is not taken care of.
Declaration
public void DisplayBaseIndexerSettings()
DisplayBaseRuntimeSettings()
Displays the base runtime settings. Requires DisplayBaseSettingsBegin() to be called before and DisplayBaseSettingsEnd() after as serialization is not taken care of.
Declaration
public void DisplayBaseRuntimeSettings()
DisplayBaseSettingsBegin()
Starts the display block of the base settings. Needs to be called if DisplayBaseRuntimeSettings() or DisplayBaseDeveloperSettings() gets called. Needs to be concluded by a call to DisplayBaseSettingsEnd().
Declaration
public bool DisplayBaseSettingsBegin()
Returns
Type | Description |
---|---|
Boolean | False if the settings cannot be loaded. Otherwise true. |
DisplayBaseSettingsEnd()
Ends the display block of the base settings. Needs to be called if DisplayBaseSettingsBegin() is called.
Declaration
public void DisplayBaseSettingsEnd()
DisplayScalerSettings()
Displays the base scaler settings. Requires the serializedObject to be updated before and applied after as serialization is not taken care of.
Declaration
public void DisplayScalerSettings()
OnEnable()
Enables Settings Editor and generates the reorderable list to store all profiles in.
Declaration
public void OnEnable()