Use 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. |
selectedOutlineColor | Gets the Color of selected outline. |
audioPlay | Enables or disables Scene view audio effects. |
camera | The Camera that is rendering this SceneView. |
cameraDistance | The distance from camera to pivot. |
cameraMode | The current DrawCameraMode for the Scene view camera. |
cameraSettings | Use CameraSettings to set the properties for the SceneView Camera. |
drawGizmos | Sets the visibility of all Gizmos in the Scene view. |
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. |
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. |
sceneLighting | Whether lighting is enabled or disabled in the Scene view. |
sceneViewState | Use SceneViewState to set the debug options for the Scene view. |
showGrid | Gets or sets whether to enable the grid for an instance of the SceneView. |
size | The size of the Scene view measured diagonally. |
validateTrueMetals | Whether the albedo is black for materials with an average specular color above 0.45. |
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. |
ResetCameraSettings | Resets the CameraSettings for the SceneView Camera to default. |
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. |
beforeSceneGui | The event issued when the OnGUI method is called. |
duringSceneGui | Subscribe to this event to receive a callback whenever the Scene view calls the OnGUI method. |
gridVisibilityChanged | Invoked when grid visibility changes. |
onCameraModeChanged | An event that is invoked when the selected cameraMode changes. |
focusedWindow | 現在キーボードフォーカスがある EditorWindow (Read Only) |
mouseOverWindow | 現在マウスのカーソルの下の EditorWindow (Read Only) |
autoRepaintOnSceneChange | Does the window automatically repaint whenever the Scene has changed? |
docked | Returns true if EditorWindow is docked. |
hasFocus | Returns true if EditorWindow is focused. |
hasUnsavedChanges | When set to true in a derived class, the editor will prompt the user to save unsaved changes if the window is about to be closed. |
maximized | Is this window maximized? |
maxSize | このウィンドウの最大サイズ |
minSize | このウィンドウの最小サイズ |
position | The desired position of the window in screen space. |
rootVisualElement | Retrieves the root visual element of this window hierarchy. |
saveChangesMessage | The message that displays to the user if they are prompted to save |
titleContent | GUIContent は EditorWindows のタイトルを描画するために使用します。 |
wantsLessLayoutEvents | Specifies whether a layout pass is performed before all user events (for example, EventType.MouseDown or [[EventType, KeyDown]]), or is only performed before repaint events. |
wantsMouseEnterLeaveWindow | Checks whether MouseEnterWindow and MouseLeaveWindow events are received in the GUI in this Editor window. |
wantsMouseMove | Checks whether MouseMove events are received in the GUI in this Editor window. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
BeginWindows | すべてのポップアップウィンドウを表示するための開始領域をマークします |
Close | エディターウィンドウを閉じます |
EndWindows | EditorWindow.BeginWindows で開始したウィンドウグループを閉じます |
Focus | Moves keyboard focus to another EditorWindow. |
GetExtraPaneTypes | Gets the extra panes associated with the window. |
RemoveNotification | 表示している通知メッセージを停止します |
Repaint | ウィンドウの再描画を行います |
SaveChanges | Performs a save action on the contents of the window. |
SendEvent | Event をウィンドウに送信します |
Show | Show the EditorWindow window. |
ShowAsDropDown | ドロップダウンの動作とスタイルを持つウィンドウを表示します |
ShowAuxWindow | 補助ウィンドウでエディターウィンドウを表示します |
ShowModal | Show modal editor window. |
ShowModalUtility | Show the EditorWindow as a floating modal window. |
ShowNotification | 通知メッセージを表示します |
ShowPopup | ポップアップスタイルのフレーミングを使用するエディターウィンドウを表示します |
ShowUtility | フローティングのユーティリティウィンドウとしてエディターウィンドウを表示します |
GetInstanceID | オブジェクトのインスタンス ID を返します |
ToString | Returns the name of the object. |
CreateWindow | Creates an EditorWindow of type T. |
FocusWindowIfItsOpen | エディターウィンドウが開いている場合に探し出し、最初に見つけたものにフォーカスを当てます |
GetWindow | 現在画面上にある t タイプの最初に見つけた EditorWindow を返します |
GetWindowWithRect | 現在画面上にある t タイプの最初に見つけた EditorWindow を返します |
HasOpenInstances | Checks if an editor window is open. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
CreateInstance | ScriptableObject のインスタンスを作成します。 |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
Awake | 新規ウィンドウが開くときに呼び出されます |
CreateGUI | CreateGUI is called when the EditorWindow's rootVisualElement is ready to be populated. |
hasUnsavedChanges | When set to true in a derived class, the editor will prompt the user to save unsaved changes if the window is about to be closed. |
OnDestroy | OnDestroy is called to close the EditorWindow window. |
OnFocus | ウィンドウがキーボードフォーカスを取得するときに呼び出されます |
OnGUI | ここに独自のエディターの GUI を実装します |
OnHierarchyChange | Handler for message that is sent when an object or group of objects in the hierarchy changes. |
OnInspectorUpdate | OnInspectorUpdate は更新する機会をインスペクターに与え、秒当たり 10 回呼ばれます |
OnLostFocus | ウィンドウがキーボードフォーカスを失ったときに呼び出されます |
OnProjectChange | Handler for message that is sent whenever the state of the project changes. |
OnSelectionChange | 選択が変更されるたび呼び出されます |
saveChangesMessage | The message that displays to the user if they are prompted to save |
Update | すべての表示されているウィンドウは秒あたり複数回呼び出されます |
Awake | ScriptableObject スクリプトを開始するとき、この関数は呼び出されます。 |
OnDestroy | ScriptableObject が破棄されるとき、この関数は呼び出されます。 |
OnDisable | ScriptableObject クラスのオブジェクトがスコープを外れるとき、この関数は呼び出されます。 |
OnEnable | オブジェクトがロードされたとき、この関数は呼び出されます。 |
OnValidate | This function is called when the script is loaded or a value is changed in the Inspector (Called in the editor only). |
Reset | デフォルト値にリセットします |