EditorGUI の補助的な処理を行うヘルパークラスです
currentViewWidth | The width of the GUI area for the current EditorWindow or other view. This Property should only be accessed within an OnGUI call. |
editingTextField | 現在テキストフィールドでテキストを編集しているかどうか |
fieldWidth | エディター GUI のフィールドで使用するピクセル単位の最小幅を指定します |
hierarchyMode | Is the Editor GUI in hierarchy mode? |
isProSkin | 現在ユーザーが Pro スキンを使用しているかどうか(読み取り専用) |
labelWidth | エディター GUI のラベルで使用するピクセル単位の最小幅を指定します |
pixelsPerPoint | 現在のビューの画面上のピクセルに比例する GUI ポイントのスケール値この値は、インターフェース空間で1ポイントに対応する画面ピクセル数です。例えば、Retina Display上では 2 です。複数のビューが、それぞれUIスケールの異なるモニター上にある場合は、取得できる値に違いが出るかもしれないことに注意してください。 |
singleLineHeight | EditorGUI.TextField や EditorGUI.Popup のような 1 行で制御する GUI の高さを取得します |
standardVerticalSpacing | GUI 間の空間縦方向に使用されるデフォルトの高さを取得します。 |
systemCopyBuffer | クリップボードにコピーした情報を取得します |
textFieldHasSelection | True if a text field currently has focused and the text in it is selected. |
whiteTexture | 白色テクスチャを取得します |
wideMode | EditorGUI が現在ワイドモードかどうか |
AddCursorRect | Rect 空間内のカーソルを変更するカスタムマウスポインタを追加します |
CommandEvent | Creates an event that can be sent to another window. |
DrawColorSwatch | カラーの情報を可視化します。 |
DrawCurveSwatch | AnimationCurve の情報を可視化します。 |
DrawRegionSwatch | 2 つの AnimationCurve の SerializedProperty 間で塗りつぶされた色を可視化します。 |
FindTexture | ファイル名からテクスチャを取得します。 |
GetBuiltinSkin | Get one of the built-in GUI skins, which can be the game view, inspector or Scene view skin as chosen by the parameter. |
GetFlowLayoutedRects | 文字列リストの項目を、指定された範囲に左から右、上から下にレイアウトします。 |
GetIconForObject | Gets the custom icon associated with an object. Only GameObjects and MonoScripts have associated custom icons. |
GetIconSize | SetIconSize で設定したアイコンのサイズを取得します。 |
GetMainWindowPosition | Returns position of Unity Editor's main window. |
GetObjectPickerControlID | 現在表示されているオブジェクト選択ツールの制御 ID |
GetObjectPickerObject | オブジェクト選択ツールで現在選択されているオブジェクトを取得します |
HasObjectThumbnail | 指定したクラスがオブジェクトごとのサムネイルを持っているかどうか |
IconContent | Fetch the GUIContent from the Unity builtin resources with the given name. |
IsDisplayReferencedByCameras | 有効なカメラが指定した画面に描画できるかどうかを確認します。 |
Load | ビルトインのリソースを読み込みます。 |
LoadRequired | Load a required built-in resource. |
LookLikeControls | すべての EditorGUI に対してデフォルト実装のような一般的なスタイルを作成します。 |
ObjectContent | オブジェクトの名前とアイコンを含む GUIContent を取得します。 |
PingObject | Ping an object in the Scene like clicking it in an inspector. |
PixelsToPoints | ピクセル空間からポイント空間へ変換します。 |
PointsToPixels | ポイント空間からピクセル空間へ変換します。 |
QueueGameViewInputEvent | ゲーム内へ入力イベントを送信します |
SetIconForObject | Sets a custom icon to associate with a GameObject or MonoScript. The custom icon is displayed in the Scene view and the Inspector. |
SetIconSize | GUIContent のアイコンのサイズを設定します。 |
SetMainWindowPosition | Sets position of Unity Editor's main window. |
ShowObjectPicker | スクリプトからオブジェクトピッカーを表示します。 |
TrIconContent | Gets the GUIContent from Unity built-in resources with the given information or creates a GUIContent for a GUI element.The icon is loaded with a localized tooltip. Typically, the icon from `Assets/Editor Default Resources/Icons` is fetched using the icon name. Only the name of the icon, without the .png extension is needed. |
TrTextContent | Gets the GUIContent from the Unity built-in resources with the given key or creates a GUIContent for a GUI element.The text and the tooltip are localized and loaded with an icon.Typically, the icon from `Assets/Editor Default Resources/Icons` is fetched using the icon name. Only the name of the icon, without the .png extension is needed. |
TrTextContentWithIcon | Gets the GUIContent from Unity built-in resources with the given information or creates a GUIContent for a GUI element.The text and the tooltip are localized and loaded with an icon.Typically, the icon from `Assets/Editor Default Resources/Icons` is fetched using the icon name. Only the name of the icon, without the .png extension is needed.If a message type is specified instead of an icon or an icon name, the GUIContent.image is the icon associated with that message type. |
hasModalWindow | ModalWindow が表示されてる場合に true、そうでない場合は false となるグローバルプロパティーです |
hotControl | 現在有効なコントロール ID |
keyboardControl | キーボードフォーカスを持つコントロール ID |
systemCopyBuffer | Get access to the system-wide clipboard. |
AlignRectToDevice | Align a local space rectangle to the pixel grid. |
ExitGUI | Puts the GUI in a state that will prevent all subsequent immediate mode GUI functions from evaluating for the remainder of the GUI loop by throwing an ExitGUIException. |
GetControlID | コントロールのユニーク ID を取得します |
GetStateObject | コントロール ID から状態オブジェクトを取得します |
GUIToScreenPoint | GUI 座標から、スクリーン座標に変換します |
GUIToScreenRect | Convert a rect from GUI position to screen space. |
QueryStateObject | コントロール ID から既存の状態オブジェクトを取得します |
RotateAroundPivot | GUI オブジェクトを回転させるヘルパー関数 |
ScaleAroundPivot | GUI オブジェクトを拡張させるヘルパー関数 |
ScreenToGUIPoint | スクリーン座標から、GUI 座標に変換します |
ScreenToGUIRect | Convert a rect from screen space to GUI position. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.