DrawGizmo 绘制Gizmo
Inherits from System.Attribute
The DrawGizmo attribute allows you to supply a gizmo renderer for any Component.
DrawGizmo属性允许你提供一个gizmo渲染器,用于任意组件Component。
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"引用。
At the moment you can only supply gizmo drawers for engine-components. All gizmo drawing methods need to be static.
目前只能提供engine-components的gizmo绘制。所有gizmo绘制方法必须是静态的。
Constructors构造器
-
Defines when the gizmo should be invoked for drawing.
当gizmo应该绘制调用时定义。
最后修改:2011年5月27日 Friday 15:51