Class UnityGameGraphicsSettingsEditor
Unity Editor custom inspector for UnityGameGraphicsSettings ScriptableObjects.
Renders typed object reference fields backed by UnityGraphicGameSettingsDefinition assets
for quality level, screen resolution and fullscreen mode key mappings. The serialized data
remains string ids; the inspector exposes the standard Unity object picker and drag-and-drop.
Namespace: Serenity.GameGraphics.Installation.Settings.Editor
Assembly: Serenity.UnityGraphicsSettings.Installation.Editor.dll
Syntax
public class UnityGameGraphicsSettingsEditor : FoundationEditor<UnityGameGraphicsSettings>
Constructors
UnityGameGraphicsSettingsEditor()
Declaration
public UnityGameGraphicsSettingsEditor()
Methods
OnInspectorGUI()
Unity Editor OnInspectorGUI method for rendering custom graphics settings interface.
Draws base inspector GUI and specialized graphics settings controls for quality level,
screen resolution, and fullscreen mode key mapping with object reference fields for
linking graphics controls to persistent game settings.
Declaration
public override void OnInspectorGUI()
RenderIsFullscreenKey(UnityGameGraphicsSettings)
Renders the fullscreen mode key as a typed object reference field backed by a UnityGraphicGameSettingsDefinition asset.
Declaration
public void RenderIsFullscreenKey(UnityGameGraphicsSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityGameGraphicsSettings | settings | Unity game graphics settings to configure |
RenderQualityLevelKey(UnityGameGraphicsSettings)
Renders the quality level key as a typed object reference field backed by a UnityGraphicGameSettingsDefinition asset.
Declaration
public void RenderQualityLevelKey(UnityGameGraphicsSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityGameGraphicsSettings | settings | Unity game graphics settings to configure |
RenderScreenResoultionKey(UnityGameGraphicsSettings)
Renders the screen resolution key as a typed object reference field backed by a UnityGraphicGameSettingsDefinition asset.
Declaration
public void RenderScreenResoultionKey(UnityGameGraphicsSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityGameGraphicsSettings | settings | Unity game graphics settings to configure |
TryDrawCustomValueField(SerializedProperty)
Claims only the three binding-key fields drawn by the RenderKey methods below, so the base still auto-draws the four Default fields (DefaultQualityLevel/DefaultResolutionWidth/ DefaultResolutionHeight/DefaultIsFullScreen) — an empty override here would hide them again, the exact first-run defect GameGraphicsSettingsCreator documents as fixed.
Declaration
protected override bool TryDrawCustomValueField(SerializedProperty property)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | property |
Returns
| Type | Description |
|---|---|
| bool |