Class SceneView
Assembly: UnityEditor.dll
Syntax
public class SceneView : SearchableEditorWindow, IHasCustomMenu
Constructors
|
Improve this Doc
View Source
SceneView()
Declaration
Fields
|
Improve this Doc
View Source
m_AudioPlay
Declaration
Field Value
|
Improve this Doc
View Source
m_RenderMode
Declaration
[Obsolete("Use cameraMode instead", false)]
public DrawCameraMode m_RenderMode
Field Value
|
Improve this Doc
View Source
m_SceneLighting
Declaration
public bool m_SceneLighting
Field Value
|
Improve this Doc
View Source
Declaration
public bool m_ValidateTrueMetals
Field Value
|
Improve this Doc
View Source
onSceneGUIDelegate
Declaration
public static SceneView.OnSceneFunc onSceneGUIDelegate
Field Value
Properties
|
Improve this Doc
View Source
camera
Declaration
public Camera camera { get; }
Property Value
|
Improve this Doc
View Source
cameraDistance
Declaration
public float cameraDistance { get; }
Property Value
|
Improve this Doc
View Source
cameraMode
Declaration
public SceneView.CameraMode cameraMode { get; set; }
Property Value
|
Improve this Doc
View Source
currentDrawingSceneView
Declaration
public static SceneView currentDrawingSceneView { get; }
Property Value
|
Improve this Doc
View Source
customParentForDraggedObjects
Declaration
protected Transform customParentForDraggedObjects { get; set; }
Property Value
|
Improve this Doc
View Source
customScene
Declaration
protected Scene customScene { get; set; }
Property Value
|
Improve this Doc
View Source
in2DMode
Declaration
public bool in2DMode { get; set; }
Property Value
|
Improve this Doc
View Source
isRotationLocked
Declaration
public bool isRotationLocked { get; set; }
Property Value
|
Improve this Doc
View Source
lastActiveSceneView
Declaration
public static SceneView lastActiveSceneView { get; }
Property Value
|
Improve this Doc
View Source
lastSceneViewRotation
Declaration
public Quaternion lastSceneViewRotation { get; set; }
Property Value
|
Improve this Doc
View Source
orthographic
Declaration
public bool orthographic { get; set; }
Property Value
|
Improve this Doc
View Source
pivot
Declaration
public Vector3 pivot { get; set; }
Property Value
|
Improve this Doc
View Source
renderMode
Declaration
[Obsolete("Use cameraMode instead", false)]
public DrawCameraMode renderMode { get; set; }
Property Value
|
Improve this Doc
View Source
rotation
Declaration
public Quaternion rotation { get; set; }
Property Value
|
Improve this Doc
View Source
sceneViews
Declaration
public static ArrayList sceneViews { get; }
Property Value
|
Improve this Doc
View Source
sceneViewState
Declaration
public SceneView.SceneViewState sceneViewState { get; set; }
Property Value
|
Improve this Doc
View Source
size
Declaration
public float size { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddCameraMode(String, String)
Declaration
public static SceneView.CameraMode AddCameraMode(string name, string section)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public virtual void AddItemsToMenu(GenericMenu menu)
Parameters
|
Improve this Doc
View Source
Declaration
public void AlignViewToObject(Transform t)
Parameters
|
Improve this Doc
View Source
AlignWithView()
Declaration
public void AlignWithView()
|
Improve this Doc
View Source
ClearUserDefinedCameraModes()
Declaration
public static void ClearUserDefinedCameraModes()
|
Improve this Doc
View Source
FixNegativeSize()
Declaration
public void FixNegativeSize()
|
Improve this Doc
View Source
Frame(Bounds, Boolean)
Declaration
public bool Frame(Bounds bounds, bool instant = true)
Parameters
Returns
|
Improve this Doc
View Source
FrameLastActiveSceneView()
Declaration
public static bool FrameLastActiveSceneView()
Returns
|
Improve this Doc
View Source
FrameLastActiveSceneViewWithLock()
Declaration
public static bool FrameLastActiveSceneViewWithLock()
Returns
|
Improve this Doc
View Source
FrameSelected()
Declaration
public bool FrameSelected()
Returns
|
Improve this Doc
View Source
FrameSelected(Boolean)
Declaration
public bool FrameSelected(bool lockView)
Parameters
Type |
Name |
Description |
Boolean |
lockView |
|
Returns
|
Improve this Doc
View Source
FrameSelected(Boolean, Boolean)
Declaration
public virtual bool FrameSelected(bool lockView, bool instant)
Parameters
Returns
|
Improve this Doc
View Source
GetAllSceneCameras()
Declaration
public static Camera[] GetAllSceneCameras()
Returns
|
Improve this Doc
View Source
GetBuiltinCameraMode(DrawCameraMode)
Declaration
public static SceneView.CameraMode GetBuiltinCameraMode(DrawCameraMode cameraMode)
Parameters
Returns
|
Improve this Doc
View Source
IsCameraDrawModeEnabled(SceneView.CameraMode)
Declaration
public bool IsCameraDrawModeEnabled(SceneView.CameraMode mode)
Parameters
Returns
|
Improve this Doc
View Source
LookAt(Vector3)
Declaration
public void LookAt(Vector3 pos)
Parameters
|
Improve this Doc
View Source
LookAt(Vector3, Quaternion)
Declaration
public void LookAt(Vector3 pos, Quaternion rot)
Parameters
|
Improve this Doc
View Source
LookAt(Vector3, Quaternion, Single)
Declaration
public void LookAt(Vector3 pos, Quaternion rot, float newSize)
Parameters
|
Improve this Doc
View Source
LookAt(Vector3, Quaternion, Single, Boolean)
Declaration
public void LookAt(Vector3 pos, Quaternion rot, float newSize, bool ortho)
Parameters
|
Improve this Doc
View Source
LookAt(Vector3, Quaternion, Single, Boolean, Boolean)
Declaration
public void LookAt(Vector3 pos, Quaternion rot, float newSize, bool ortho, bool instant)
Parameters
|
Improve this Doc
View Source
LookAtDirect(Vector3, Quaternion)
Declaration
public void LookAtDirect(Vector3 pos, Quaternion rot)
Parameters
|
Improve this Doc
View Source
LookAtDirect(Vector3, Quaternion, Single)
Declaration
public void LookAtDirect(Vector3 pos, Quaternion rot, float newSize)
Parameters
|
Improve this Doc
View Source
MoveToView()
Declaration
|
Improve this Doc
View Source
Declaration
public void MoveToView(Transform target)
Parameters
|
Improve this Doc
View Source
OnDestroy()
Declaration
|
Improve this Doc
View Source
OnDisable()
Declaration
public override void OnDisable()
Overrides
|
Improve this Doc
View Source
OnEnable()
Declaration
public override void OnEnable()
Overrides
|
Improve this Doc
View Source
OnGUI()
Declaration
protected virtual void OnGUI()
|
Improve this Doc
View Source
OnSelectionChange()
Declaration
public void OnSelectionChange()
|
Improve this Doc
View Source
RepaintAll()
Declaration
public static void RepaintAll()
|
Improve this Doc
View Source
SetSceneViewFiltering(Boolean)
Declaration
public void SetSceneViewFiltering(bool enable)
Parameters
Type |
Name |
Description |
Boolean |
enable |
|
|
Improve this Doc
View Source
SetSceneViewShaderReplace(Shader, String)
Declaration
public void SetSceneViewShaderReplace(Shader shader, string replaceString)
Parameters
|
Improve this Doc
View Source
ShowCompileErrorNotification()
Declaration
public static void ShowCompileErrorNotification()
|
Improve this Doc
View Source
SupportsStageHandling()
Declaration
protected virtual bool SupportsStageHandling()
Returns
Events
|
Improve this Doc
View Source
onCameraModeChanged
Declaration
public event Action<SceneView.CameraMode> onCameraModeChanged
Event Type
|
Improve this Doc
View Source
onValidateCameraMode
Declaration
public event Func<SceneView.CameraMode, bool> onValidateCameraMode
Event Type
Implements
Extension Methods