网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Gizmos辅助线框-创新互联

Gizmos are used to give visual debugging or setup aids in the scene view.Gizmos辅助线框

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

成都创新互联成立于2013年,是专业互联网技术服务公司,拥有项目成都网站建设、网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元龙南做网站,已为上家服务,为龙南各地企业和个人服务,联系电话:18980820575

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

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

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类变量

  • color Sets the color for the gizmos that will be drawn next.
    为随后绘制的gizmos设置颜色。
  • matrix Set the gizmo matrix used to draw all gizmos.
    设置gizmo的矩阵用于绘制所有gizmos。

Class Functions类函数

    • DrawRay Draws a ray starting at from to from + direction.
      绘制一条射线从from起点到direction方向和位置。
    • DrawLine Draws a line starting at from towards to.
      绘制一条线从from起点到to位置。
    • DrawWireSphere Draws a wireframe sphere with center and radius.
      使用center和radius参数,绘制一个线框球体。
    • DrawSphere Draws a solid sphere with center and radius.
      使用center和radius参数,绘制一个实心球体。
    • DrawWireCube Draw a wireframe box with center and size.
      使用center和size参数,绘制一个线框立方体。
    • DrawCube Draw a solid box with center and size.
      使用center和size参数,绘制一个实心立方体。
    • DrawIcon Draw an icon at world position in the scene view.
      在场景视图世界位置绘制一个图标。
    • DrawGUITexture Draw a texture in screen coordinates. Useful for GUI backgrounds.
      在屏幕坐标绘制一个纹理。作为GUI的背景很有用的。

当前标题:Gizmos辅助线框-创新互联
分享路径:http://bjjierui.cn/article/cdsdjs.html

其他资讯