Class SimulationView
MARS Simulation View displays a separate 3D scene by extending SceneView.
Inheritance
UnityEditor.SearchableEditorWindow
SimulationView
Inherited Members
UnityEditor.SceneView.m_SceneLighting
UnityEditor.SceneView.onSceneGUIDelegate
UnityEditor.SceneView.FrameLastActiveSceneViewWithLock()
UnityEditor.SceneView.IsCameraDrawModeEnabled(UnityEditor.SceneView.CameraMode)
UnityEditor.SceneView.FixNegativeSize()
UnityEditor.SceneView.FrameSelected(System.Boolean, System.Boolean)
UnityEditor.SceneView.Frame(UnityEngine.Bounds, System.Boolean)
UnityEditor.SceneView.customScene
UnityEditor.SceneView.customParentForDraggedObjects
UnityEditor.SceneView.onValidateCameraMode
UnityEditor.SceneView.onCameraModeChanged
UnityEditor.SceneView.gridVisibilityChanged
UnityEditor.SceneView.beforeSceneGui
UnityEditor.SceneView.duringSceneGui
UnityEditor.SearchableEditorWindow.m_SearchGroup
UnityEditor.EditorWindow.ShowTab()
UnityEditor.EditorWindow.GetWindow<T>()
UnityEditor.EditorWindow.GetWindow<T>(System.Boolean)
UnityEditor.EditorWindow.GetWindow<T>(System.Boolean, System.String)
UnityEditor.EditorWindow.GetWindow<T>(System.String)
UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Boolean)
UnityEditor.EditorWindow.GetWindow<T>(System.Boolean, System.String, System.Boolean)
UnityEditor.EditorWindow.GetWindow<T>(System.Type[])
UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Type[])
UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Boolean, System.Type[])
UnityEditor.EditorWindow.CreateWindow<T>(System.Type[])
UnityEditor.EditorWindow.CreateWindow<T>(System.String, System.Type[])
UnityEditor.EditorWindow.HasOpenInstances<T>()
UnityEditor.EditorWindow.FocusWindowIfItsOpen<T>()
UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect)
UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean)
UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean, System.String)
UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean, System.String, System.Boolean)
UnityEditor.EditorWindow.depthBufferBits
UnityEditor.EditorWindow.antiAlias
Namespace: UnityEditor.MARS.Simulation
Syntax
[Serializable]
[MovedFrom("Unity.MARS")]
public class SimulationView : SceneView, IHasCustomMenu, ISimulationView
Fields
DeviceViewWindowTitle
Declaration
public const string DeviceViewWindowTitle = "Device View"
Field Value
Type | Description |
---|---|
String |
SimulationViewWindowTitle
Declaration
public const string SimulationViewWindowTitle = "Simulation View"
Field Value
Type | Description |
---|---|
String |
Properties
ActiveSimulationView
The last Simulation View the user focused
Declaration
public static SceneView ActiveSimulationView { get; }
Property Value
Type | Description |
---|---|
SceneView |
DesaturateInactive
Declaration
public bool DesaturateInactive { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
EditorBackgroundColor
Declaration
public static Color EditorBackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
EnvironmentSceneActive
Declaration
public bool EnvironmentSceneActive { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
LastHoveredSimulationOrDeviceView
The Simulation or Device View that was most recently hovered by the mouse
Declaration
public static SceneView LastHoveredSimulationOrDeviceView { get; }
Property Value
Type | Description |
---|---|
SceneView |
NormalSceneView
The primary scene view. Not a Simulation View.
Declaration
public static SceneView NormalSceneView { get; }
Property Value
Type | Description |
---|---|
SceneView |
SceneType
Whether this view is in Sim or Device mode
Declaration
public ViewSceneType SceneType { get; set; }
Property Value
Type | Description |
---|---|
ViewSceneType |
Implements
SimulationViews
List of all Simulation Views
Declaration
public static List<SimulationView> SimulationViews { get; }
Property Value
Type | Description |
---|---|
List<SimulationView> |
UseXRay
Declaration
public bool UseXRay { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AddItemsToMenu(GenericMenu)
Declaration
public override void AddItemsToMenu(GenericMenu menu)
Parameters
Type | Name | Description |
---|---|---|
GenericMenu | menu |
Overrides
UnityEditor.SceneView.AddItemsToMenu(UnityEditor.GenericMenu)
CacheLookAt(Vector3, Quaternion, Single)
Cache the LookAt information for the Simulation scene type when it is not the active view type
Declaration
public void CacheLookAt(Vector3 point, Quaternion direction, float newSize)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | point | The position in world space to frame. |
Quaternion | direction | The direction that the Scene view should view the target point from. |
Single | newSize | The amount of camera zoom. Sets |
InitWindowInDeviceView()
Declaration
[MenuItem("Window/MARS/Device View", priority = 1023)]
public static void InitWindowInDeviceView()
InitWindowInSimulationView()
Declaration
[MenuItem("Window/MARS/Simulation View", priority = 1022)]
public static void InitWindowInSimulationView()
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnDisable()
Declaration
public override void OnDisable()
Overrides
UnityEditor.SceneView.OnDisable()
OnEnable()
Declaration
public override void OnEnable()
Overrides
UnityEditor.SceneView.OnEnable()
OnGUI()
Declaration
protected override void OnGUI()
Overrides
UnityEditor.SceneView.OnGUI()
SetupViewAsSimUser(Boolean)
Setup the view as using the Simulation Scene.
Declaration
public void SetupViewAsSimUser(bool forceFrame = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | forceFrame | Force using the framing of the simulated environment settings. |
Implements
SupportsStageHandling()
Declaration
protected override bool SupportsStageHandling()
Returns
Type | Description |
---|---|
Boolean |