Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

ProviderSettingsEditor

class in UnityEditor.AdaptivePerformance.Editor

/

Inherits from:Editor

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

Description

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.

Properties

Property Description
CurrentTargetGroup Specify which platform the provider should be supported on.
IsAutoGameModeAvailable Controls whether or not the 'AutomaticGameModeEnabled' option is available. Default value is false.
IsAutoPerformanceModeAvailable Controls whether or not the 'AutomaticPerformanceModeEnabled' option is available. Default value is true.
IsBoostAvailable Controls whether or not the 'EnableBoostOnStartup' option is available. Default value is true.
IsThermalActionDelayAvailable Controls whether or not the 'Indexer/Thermal Action Delay' option is available. Default value is false.
m_ShowDevelopmentSettings Whether the development settings are collapsed or not.
m_ShowIndexerSettings Whether the indexer settings are collapsed or not.
m_ShowRuntimeSettings Whether the runtime settings are collapsed or not.
m_ShowScalerSettings Whether the scaler settings are collapsed or not.
ShowTargetGroupSelection Whether to show targetGroupSelection tab when using the default base setting. User should use this property to conditionally define their UI if they choose to custom the provider setting UI for each platform and uses the targetGroupSelection tab.
UnsupportedInfo String to show when the provider is not available on this platform.

Public Methods

Method Description
DisplayBaseDeveloperSettings Displays the base developer settings. Requires DisplayBaseSettingsBegin() to be called before and DisplayBaseSettingsEnd() after as serialization is not taken care of.
DisplayBaseIndexerSettings Displays the base indexer settings. Requires the serializedObject to be updated before and applied after as serialization is not taken care of.
DisplayBaseRuntimeSettings Displays the base runtime settings. Requires DisplayBaseSettingsBegin() to be called before and DisplayBaseSettingsEnd() after as serialization is not taken care of.
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(). Pass isLegacyAPI = false to hide the legacy warning banner and comply with new APIs. Default is true (for compatibility).
DisplayBaseSettingsEnd Ends the display block of the base settings. Needs to be called if DisplayBaseSettingsBegin() is called. Pass isLegacyAPI = false to comply with new APIs in this class. Default is true (for compatibility).
DisplayScalerSettings Displays the base scaler settings. Requires the serializedObject to be updated before and applied after as serialization is not taken care of.
OnEnable Enables Settings Editor and generates the reorderable list to store all profiles in.

Protected Methods

Method Description
DisplayProviderSettings Default UI for showing provider settings on both project settings and build profile.
DisplayTargetProviderSettings Display default common base settings for provider on specific target, which user could choose to override if they are using DisplayProviderSettings.

Inherited Members

Properties

PropertyDescription
hasUnsavedChangesThis property specifies whether the Editor prompts the user to save or discard unsaved changes before the Inspector gets rebuilt.
saveChangesMessageThe message that displays to the user if they are prompted to save.
serializedObjectA SerializedObject representing the object or objects being inspected.
targetThe object being inspected.
targetsAn array of all the object being inspected.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Methods

MethodDescription
CreateInspectorGUIImplement this method to make a custom UIElements inspector.
CreatePreviewImplement this method to make a custom UIElements inspector preview.
DiscardChangesDiscards unsaved changes to the contents of the editor.
DrawDefaultInspectorDraws the built-in Inspector.
DrawHeaderCall this function to draw the header of the editor.
DrawPreviewThe first entry point for Preview Drawing.
GetInfoStringImplement this method to show asset information on top of the asset preview.
GetPreviewTitleOverride this method if you want to change the label of the Preview area.
HasPreviewGUIOverride this method in subclasses if you implement OnPreviewGUI.
OnInspectorGUIImplement this function to make a custom inspector.
OnInteractivePreviewGUIImplement to create your own interactive custom preview. Interactive custom previews are used in the preview area of the inspector and the object selector.
OnPreviewGUICreates a custom preview for the preview area of the Inspector, the headers of the primary Editor, and the object selector.You must implement Editor.HasPreviewGUI for this method to be called.
OnPreviewSettingsOverride this method if you want to show custom controls in the preview header.
RenderStaticPreviewOverride this method if you want to render a static preview.
RepaintRedraw any inspectors that shows this editor.
RequiresConstantRepaintChecks if this editor requires constant repaints in its current state.
SaveChangesPerforms a save action on the contents of the editor.
UseDefaultMarginsOverride this method in subclasses to return false if you don't want default margins.
GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Protected Methods

MethodDescription
ShouldHideOpenButtonReturns the visibility setting of the "open" button in the Inspector.

Static Methods

MethodDescription
CreateCachedEditorOn return previousEditor is an editor for targetObject or targetObjects. The function either returns if the editor is already tracking the objects, or destroys the previous editor and creates a new one.
CreateCachedEditorWithContextCreates a cached editor using a context object.
CreateEditorMake a custom editor for targetObject or targetObjects.
CreateEditorWithContextMake a custom editor for targetObject or targetObjects with a context object.
DrawFoldoutInspectorDraws the inspector GUI with a foldout header for target.
DestroyRemoves a GameObject, component, or asset.
DestroyImmediateDestroys the specified object immediately. Use with caution and in Edit mode only.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindFirstObjectByTypeRetrieves the first active loaded object of Type type.
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.
InstantiateAsyncCaptures a snapshot of the original object (that must be related to some GameObject) and returns the AsyncInstantiateOperation.
CreateInstanceCreates an instance of a scriptable object.

Operators

OperatorDescription
boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.

Messages

MessageDescription
HasFrameBoundsValidates whether custom bounds can be calculated for this Editor.
OnGetFrameBoundsGets custom bounds for the target of this editor.
OnSceneGUIEnables the Editor to handle an event in the Scene view.
AwakeCalled when an instance of ScriptableObject is created.
OnDestroyThis function is called when the scriptable object will be destroyed.
OnDisableThis function is called when the scriptable object goes out of scope.
OnValidateEditor-only function that Unity calls when the script is loaded or a value changes in the Inspector.
ResetReset to default values.

Events

EventDescription
finishedDefaultHeaderGUIAn event raised while drawing the header of the Inspector window, after the default header items have been drawn.