class in UnityEditor
/
Inherits from:EditorWindow
Implements interfaces:IHasCustomMenu
Switch to ManualUse this class to manage SceneView settings, change the SceneView camera properties, subscribe to events, call SceneView methods, and render open scenes.
currentDrawingSceneView | The SceneView that is being drawn. |
lastActiveSceneView | The SceneView that was most recently in focus. |
sceneViews | The list of all open Scene view windows. |
camera | The Camera that is rendering this SceneView. |
cameraDistance | The distance from camera to pivot. |
cameraMode | The current DrawCameraMode for the Scene view camera. |
in2DMode | Whether the SceneView is in 2D mode. |
isRotationLocked | Whether the Scene view camera can be rotated. |
lastSceneViewRotation | When the Scene view is in 2D mode, this property contains the last camera rotation. |
m_AudioPlay | M_AudioPlay has been deprecated. Use audioPlay instead (UnityUpgradable) -> audioPlay. |
m_ValidateTrueMetals | M_ValidateTrueMetals has been deprecated. Use validateTrueMetals instead (UnityUpgradable) -> validateTrueMetals. |
orthographic | Whether the Scene view camera is set to orthographic mode. |
pivot | The center point, or pivot, of the Scene view. |
rotation | The direction of the camera to the pivot of the SceneView. |
sceneViewState | Use SceneViewState to set the debug options for the Scene view. |
size | The size of the Scene view measured diagonally. |
AlignViewToObject | Moves the Scene view to frame a transform. |
AlignWithView | Aligns the current selection with the position and rotation of the Scene view camera. |
Frame | Frames the given bounds in the Scene view. |
FrameSelected | Frame the object selection in the Scene view. |
IsCameraDrawModeEnabled | Returns true if mode is enabled in the current rendering setup, including custom validators. |
LookAt | Moves the Scene view to focus on a target. |
LookAtDirect | LookAt without animating the scene movement. |
MoveToView | Transforms all selected object to the scene pivot. |
SetSceneViewShaderReplace | Sets a replacement shader for rendering this Scene view. |
SupportsStageHandling | Override this method to control whether the Scene view should change when you switch from one stage to another stage. |
AddCameraMode | Add a custom camera mode to the Scene view camera mode list. |
ClearUserDefinedCameraModes | Remove all user-defined camera modes. |
FrameLastActiveSceneView | Frames the currently selected object(s) in the last active Scene view. |
GetAllSceneCameras | Retrieves an array of all camera components from all open Scene views. |
GetBuiltinCameraMode | Gets the built-in CameraMode that matches the specified DrawCameraMode. |
RepaintAll | Repaints every open SceneView. |
onCameraModeChanged | An event that is invoked when the selected cameraMode changes. |
focusedWindow | 当前已获得键盘焦点的 EditorWindow。(只读) |
mouseOverWindow | 当前在鼠标光标下的 EditorWindow。(只读) |
autoRepaintOnSceneChange | Does the window automatically repaint whenever the Scene has changed? |
maximized | 此窗口是否已最大化? |
maxSize | 此窗口的最大大小。 |
minSize | 此窗口的最小大小。 |
position | 窗口在屏幕空间中的理想位置。 |
titleContent | 用于绘制 EditorWindow 标题的 GUIContent。 |
wantsMouseEnterLeaveWindow | 检查是否已在此编辑器窗口的 GUI 中收到 MouseEnterWindow 和 MouseLeaveWindow 事件。 |
wantsMouseMove | 检查是否已在此编辑器窗口的 GUI 中收到 MouseMove 事件。 |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | 对象的名称。 |
BeginWindows | 标记所有弹出窗口的开始区域。 |
Close | 关闭编辑器窗口。 |
EndWindows | 关闭由 EditorWindow.BeginWindows 开始的窗口组。 |
Focus | 将键盘焦点移动到另一个 EditorWindow。 |
RemoveNotification | 停止显示通知消息。 |
Repaint | 重绘窗口。 |
SendEvent | 将事件发送到窗口。 |
Show | 显示 EditorWindow 窗口。 |
ShowAsDropDown | 显示包含下拉菜单和样式的窗口。 |
ShowAuxWindow | 在辅助窗口中显示编辑器窗口。 |
ShowNotification | 显示通知消息。 |
ShowPopup | 使用弹出式框架显示编辑器窗口。 |
ShowUtility | 将 EditorWindow 显示为浮动实用程序窗口。 |
GetInstanceID | 返回对象的实例 ID。 |
ToString | 返回 GameObject 的名称。 |
FocusWindowIfItsOpen | 聚焦发现的第一个指定类型的 EditorWindow(如果已打开)。 |
GetWindow | 返回当前屏幕上第一个 t 类型的 EditorWindow。 |
GetWindowWithRect | 返回当前屏幕上第一个 t 类型的 EditorWindow。 |
Destroy | 删除 GameObject、组件或资源。 |
DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 |
FindObjectsOfType | 返回所有类型为 type 的已加载的激活对象的列表。 |
Instantiate | 克隆 original 对象并返回克隆对象。 |
CreateInstance | 创建脚本化对象的实例。 |
bool | 该对象是否存在? |
operator != | 比较两个对象是否引用不同的对象。 |
operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |
Awake | 在新窗口打开时调用。 |
OnDestroy | 调用 OnDestroy 以关闭 EditorWindow 窗口。 |
OnFocus | 在窗口获得键盘焦点时调用。 |
OnGUI | 在此处实现您自己的 Editor GUI。 |
OnHierarchyChange | 处理程序,用于在层级视图中的对象或对象组发生更改时发送的消息。 |
OnInspectorUpdate | OnInspectorUpdate 以每秒 10 帧的速度调用,以便检视面板有机会进行更新。 |
OnLostFocus | 在窗口失去键盘焦点时调用。 |
OnProjectChange | 处理程序,用于在项目状态发生更改时发送的消息。 |
OnSelectionChange | 每当选择发生更改时调用。 |
Update | 在所有可见窗口上每秒调用多次。 |
Awake | 当 ScriptableObject 脚本启动时调用此函数。 |
OnDestroy | 当脚本化对象将销毁时调用此函数。 |
OnDisable | 当脚本化对象超出范围时调用此函数。 |
OnEnable | 当对象加载时调用此函数。 |