Advertisement

Object Game Technology Core Concepts

阅读量:
复制代码
>       1. // 名字

>  
>       2. this.gameObject.name
>  
>       3.  
>  
>       4. // 是否激活
>  
>       5. this.gameObject.activeSelf
>  
>       6.  
>  
>       7. // 是否为静态
>  
>       8. this.gameObject.isStatic
>  
>       9.  
>  
>       10. // 层级
>  
>       11. this.gameObject.layer(返回int类型,层级前面的标号)
>  
>       12.  
>  
>       13. // 标签
>  
>       14. this.gameObject.tag(返回string类型)
>  
>       15.  
>  
>       16. // transform
>  
>       17. this.transform,通过Mono去得到的依附对象的GameObject的位置信息
>  
>       18. 与this.gameObject.transform得到的相同
>  
>  
>  
>  
> ```

>
>

>
>
> 2、Game

全部评论 (0)

还没有任何评论哟~