SceneView.SceneViewState
A collection of graphic settings for this SceneView. All graphic settings are boolean.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public class SceneView.SceneViewState
Remarks
After changing settings, call SceneView.RepaintAll to redraw the scene with the new values.
Fields
Value | Description |
|---|---|
| showFlares | Whether lens flare rendering is enabled in this SceneView. |
| showFog | Whether fog rendering is enabled in this SceneView. |
| showImageEffects | Whether image effects (post processing) rendering is enabled in this SceneView. |
| showParticleSystems | Whether particle systems rendering is enabled in this SceneView. |
| showSkybox | Whether the skybox rendering is enabled in this SceneView. |
| showVisualEffectGraphs | Whether visual effect graphs rendering is enabled in this SceneView. |
Constructors
Constructor | Description |
|---|---|
| SceneViewState() | Creates a new SceneView.SceneViewState with either default values or values from another SceneView.SceneViewState. |
| SceneViewState(UnityEditor.SceneView.SceneViewState) | Creates a new SceneView.SceneViewState with either default values or values from another SceneView.SceneViewState. |
Properties
Property | Description |
|---|---|
| allEnabled | Whether all graphic settings are enabled for this SceneView.SceneViewState. |
| alwaysRefresh | Whether to redraw SceneView at a fixed interval. |
| alwaysRefreshEnabled | Whether to redraw SceneView at a fixed interval. |
| cloudsEnabled | Whether the clouds are rendered in this SceneView. |
| flaresEnabled | Whether lens flares render in this SceneView. |
| fogEnabled | Whether fog renders in this SceneView. |
| fxEnabled | Whether to render (when enabled) effects in this SceneView. |
| imageEffectsEnabled | Whether image effects (post processing) render in this SceneView. |
| particleSystemsEnabled | Whether particle systems render in this SceneView. |
| showClouds | Whether the clouds are rendered in this SceneView. |
| skyboxEnabled | Whether the skybox renders in this SceneView. |
| visualEffectGraphsEnabled | Whether visual effect graphs render in this SceneView. |
Methods
Method | Description |
|---|---|
| SetAllEnabled | Sets all graphic settings, for this SceneView.SceneViewState, to either true or false. |