下载此文档

Unity3D技术之脚本属性的用法(doc 3页).docx


文档分类:IT计算机 | 页数:约4页 举报非法文档有奖
1/4
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/4 下载此文档
文档列表 文档介绍
Unity3D技术之脚本属性
script ponentMenu (“Transform/Follow Transform”)
// CSharp
[ponentMenu(“Transform/Follow Transform”)]
         Unity3D  以下是具体说明(部分无关紧要的不翻译):
       ponentMenu(函数)
       ponents”菜单途径添加脚本(如果不使用       ponents->Scripts下添加)。注意需restart起效,文章出处【狗刨学习网】。
       ContextMenu
       允许为脚本增加一组命令,该属性标记在函数上,而且必须是non-static函数。
       假设你为一个脚本move增加了一个ContextMenu属性的方法Do somethine,。这个move脚本attach在一个user身上。那么你选中user时,ponent右击,就会发现一组命令,点击打印。
       这个属性一个有用之处是自动初始化。
       ImageEffectOpaque
       Any Image Effect with this attribute will be rendered after opaque geometry but before transparent geometry.
       This allows for effects which extensively use the depth buffer (SSAO ect) to only affect opaque pixels. This Attribute can be used to reduce the amount of visual artifacts in a scene with post processing.
       ImageEffectTransformsToLDR
       When using HDR rendering it can sometime be desirable to switch to LDR rendering during ImageEffect rendering.
       Using this Attribute on an image effect will cause the destination buffer to be an LDR buffer, and switch the rest of the Image Effect pipeline into LDR mode. It is the responsibility of the Image Effect that this Attribute is associated to ensure that the output is in the LDR range.
       ExecuteInEditMode
       默认脚本组件仅在play mode下执行。增加这组属性后,脚本的callback functions在eidtor下亦可执行。注意,调用频率不同

Unity3D技术之脚本属性的用法(doc 3页) 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数4
  • 收藏数0 收藏
  • 顶次数0
  • 上传人aibuaiwo1318
  • 文件大小0 KB
  • 时间2015-10-17
最近更新