Game.UI.Editor.EditorPanelWidgetRenderer
Assembly: Assembly-CSharp (game runtime assembly)
Namespace: Game.UI.Editor
Type: public enum
Base: System.Enum
Summary:
An enumeration used by the in-game editor UI to select which widget rendering mode to use for editor panels. The two modes represent the normal editor UI layout and a special Photo Mode layout (typically used when the player is taking screenshots or viewing the scene without the regular editor overlays). The enum values are simple named constants (underlying type: int) and the default value is Editor
(0).
Fields
-
Editor
Represents the standard editor widget renderer. Use this when the editor UI should show full interactive widgets and editor-specific controls. -
PhotoMode
Represents a simplified or alternate widget renderer intended for photo mode. Use this to switch UI rendering to a mode appropriate for screenshots (usually fewer overlays or different styling).
Properties
- This enum does not declare any properties. It is a simple set of named constants used to control renderer selection.
Constructors
- This enum has no user-declared constructors. The compiler provides the usual enum backing constructor.
Methods
- This enum does not declare any methods beyond the standard System.Enum and System.ValueType members provided by the runtime.
Usage Example
// Example: switching UI behavior based on the renderer mode
using Game.UI.Editor;
public void ApplyRenderer(EditorPanelWidgetRenderer renderer)
{
switch (renderer)
{
case EditorPanelWidgetRenderer.Editor:
// Enable full editor widgets and controls
EnableEditorWidgets(true);
SetPhotoOverlaysVisible(false);
break;
case EditorPanelWidgetRenderer.PhotoMode:
// Simplify or change UI for photo mode
EnableEditorWidgets(false);
SetPhotoOverlaysVisible(true);
break;
}
}
// Example usage
var current = EditorPanelWidgetRenderer.PhotoMode;
ApplyRenderer(current);