Gizmos 辅助线框

Gizmos are used to give visual debugging or setup aids in the scene view.

Gizmos是用于在场景视图可视化调试或辅助设置。

All gizmo drawing has to be done in either OnDrawGizmos or OnDrawGizmosSelected functions of the script.

所有gizmo绘制需要在脚本的OnDrawGizmosOnDrawGizmosSelected里函数完成。

OnDrawGizmos is called every frame. All gizmos rendered within OnDrawGizmos are pickable.
OnDrawGizmosSelected is called only if the object the script is attached to is selected.

OnDrawGizmos在每帧调用。所有在OnDrawGizmos中渲染的gizmos都是可见的。
OnDrawGizmosSelected仅在脚本附加的物体被选择时被调用。

 

Class Variables类变量

Class Functions类函数

最后修改:2010年12月26日 Sunday 0:19

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。