EditorGUIUtility 编辑器界面工具

Inherits from GUIUtility

Misc helper stuff for EditorGUI.

EditorGUI的辅助工具。

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
 注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。

Class Variables类变量

  • whiteTexture
    Get a white texture. // 获取一个白色纹理。
  • systemCopyBuffer
    The system copy buffer. // 系统复制缓冲区。

Class Functions类函数

  • ObjectContent
    Return a GUIContent object with the name and icon of an Object.
       返回一个GUIContent对象,带有名称和物体的图标。
  • HasObjectThumbnail
    Does a given class have per-object thumbnails?
       给定的类每个物体都有缩略图?
  • FindTexture
    Get a texture from its source filename.
       从源文件名获取一个纹理。
  • GetBuiltinSkin
    Get one of the built-in GUI skins // 获取内置的GUISkin。
  • LoadRequired
    Load a built-in resource that has to be there.
       加载一个已有的内置资源。
  • Load
    Load a built-in resource // 加载一个内置资源。
  • PingObject
    Ping an object in a window like clicking it in an inspector
       在窗口Ping一个物体,就像在检视面板点击它。
  • RenderGameViewCameras
    Render all ingame cameras. // 渲染游戏中所有的相机。
  • QueueGameViewInputEvent
    Send an input event into the game. // 发送导入事件到游戏。
  • LookLikeControls
    Make all ref::EditorGUI look like regular controls.
       使所有ref::EditorGUI看起来像标准控件。
  • LookLikeInspector
    Make all EditorGUI look like simplified outline view controls.
       使所有EditorGUI看起来像简单大纲视图控件。
  • CommandEvent
    Creates an event // 创建一个事件。
  • DrawColorSwatch
    Draw a color swatch. // 绘制一个颜色样本。
  • DrawCurveSwatch
    Draw a curve swatch. // 绘制一个曲线样本。
  • RGBToHSV
    Convert a color from RGB to HSV color space.
       转换颜色从RGB 到 HSV颜色空间。
  • HSVToRGB
    Convert a set of HSV values to an RGB Color.
       转换HSV值到RGB颜色。
  • AddCursorRect
    Add a custom mouse pointer to a control
       添加一个自定义鼠标指针到控件。

Inherited members继承成员Inherited Class Variables继承类变量

  • hotControl
    The controlID of the current hot control.
          当前热点控件的controlID。
  • keyboardControl
    The controlID of the control that has keyboard focus.
          具有键盘焦点控件的controlID。

Inherited Class Functions继承类函数

  • GetControlID
    Get a unique ID for a control.
          为控件获取一个唯一ID。
  • GetStateObject
    Get a state object from a controlID.
          从一个controlID获取一个状态的物体。
  • QueryStateObject
    Get an existing state object from a controlID.
          从一个controlID获取一个存在的状态物体。
  • GUIToScreenPoint
    Convert a point from GUI position to screen space.
          转换一个点从GUI位置到屏幕坐标空间。
  • ScreenToGUIPoint
    Convert a point from screen space to GUI position.
          转换一个点从屏幕坐标空间位置到GUI位置。
  • RotateAroundPivot
    Helper function to rotate the GUI around a point.
          使GUI绕一个点旋转的辅助函数。
  • ScaleAroundPivot
    Helper function to scale the GUI around a point.
          使GUI沿一个点缩放的辅助函数。
,