Version: 2022.3
言語: 日本語

EditorApplication

class in UnityEditor

マニュアルに切り替える

説明

UnityEditor の軸となるアプリケーションクラスです

Static 変数

applicationContentsPath現在起動している UnityEditor の Contents フォルダーのパス(読み取り専用)
applicationPathUnityEditor アプリケーションのパス(読み取り専用)
contextualPropertyMenuCallback raised whenever the user context-clicks on a property in an Inspector.
delayCallすべてのインスペクターが更新された後に1度だけ呼び出されるデリゲート
hierarchyWindowItemOnGUIOnGUI イベントごとに HierarchyWindow に表示されているリスト項目ごとに呼び出されるデリゲートです
isCompiling現在スクリプトがコンパイルされているかどうか(読み取り専用)
isFocusedWhether the Editor is the focused window of the operating system. (Read Only)
isPausedWhether the Editor is paused.
isPlayingWhether the Editor is in Play mode.
isPlayingOrWillChangePlaymodeWhether the Editor is either currently in Play mode or about to switch to it. (Read Only)
isRemoteConnectedエディターが Unity Remote 4 と接続しているかどうか
isTemporaryProjectReturns true if the current project was created as a temporary project.
isUpdatingTrue if the Editor is currently refreshing the AssetDatabase.
modifierKeysChangedキーボードの修飾キーが更新されたときに呼び出されるデリゲート
projectWindowItemInstanceOnGUIProjectWindow で表示されているアイテムリストごとの OnGUI イベントのデリゲート
projectWindowItemOnGUIProjectWindow で表示されているアイテムリストごとの OnGUI イベントのデリゲート
searchChangedウィンドウの検索ボックスの内容が変更されるごとに呼び出されるコールバック
timeSinceStartupエディターが起動してからの時間(読み取り専用)
updateUnityEditor で更新処理を行うためのデリゲート

Static 関数

BeepPC システムのビープ音を再生します。
DirtyHierarchyWindowSortingヒエラルキーのオブジェクトソートが、最新状態ではないとしてダーティーフラグを立てます。
EnterPlaymodeSwitches the editor to Play mode.
ExecuteMenuItemパスを指定して MenuItem を実行します
ExitUnityEditor を終了させます
ExitPlaymodeSwitches the editor to Edit mode.
LockReloadAssembliesAssembly の再コンパルを行わないようにロックします。
OpenProject他の Unity プロジェクトを開きます
QueuePlayerLoopUpdateNormally, a player loop update will occur in the editor when the Scene has been modified. This method allows you to queue a player loop update regardless of whether the Scene has been modified.
RepaintHierarchyWindowHierarchyWindow の再描画を行うために使用することができます。
RepaintProjectWindowProjectWindow の再描画を行うために使用することができます。
SetTemporaryProjectKeepPathSets the path that Unity should store the current temporary project at, when the project is closed.
Stepゲーム再生で 1 フレームごと進ませる場合に使用します。
UnlockReloadAssembliesEditorApplication.LockReloadAssemblies でロックしたアセンブリロードを解除します

Events

focusChangedRaises when the Editor gets or loses focus in the operating system.
hierarchyChangedEvent that is raised when an object or group of objects in the hierarchy changes.
pauseStateChangedEvent that is raised whenever the Editor's pause state changes.
playModeStateChangedEvent that is raised whenever the Editor's play mode state changes.
projectChangedEvent that is raised whenever the state of the project changes.
quittingUnity raises this event when the editor application is quitting.
wantsToQuitUnity raises this event when the editor application wants to quit.

デリゲート

CallbackFunction EditorApplication のコールバックから呼び出されるデリゲートです。
HierarchyWindowItemCallbackOnGUI イベントごとに HierarchyWindow に表示されているリスト項目ごとに呼び出されるデリゲートです。
ProjectWindowItemCallbackDelegate to be called for every visible list item in the ProjectWindow on every OnGUI event. Use this if you if you want to extend the functionality of the Project window. For example, to display information or tools relating to the assets that are visible.
ProjectWindowItemInstanceCallbackDelegate to be called for every visible list item in the ProjectWindow on every OnGUI event. Use this if you if you want to extend the functionality of the Project window. For example, to display information or tools relating to the assets or sub-assets that are visible.
SerializedPropertyCallbackFunctionDelegate to be called from EditorApplication contextual inspector callbacks.