Tekkaman

导航

 

GameObject.Active

  用于控制一个对象是否激活,一个对象激活当且本身active=true,并且它的父结点也都active。相当API有:

  1)GameObject.SetActive

  2)GameObject.activeSelf

  3)GameObjectd.activeInHierarchy

参考:

1、file:///D:/Program%20Files%20(x86)/Unity/Editor/Data/Documentation/Documentation/ScriptReference/GameObject.SetActive.html

2、file:///D:/Program%20Files%20(x86)/Unity/Editor/Data/Documentation/Documentation/ScriptReference/GameObject-activeInHierarchy.html

 

posted on 2014-06-26 13:20  Tekkaman  阅读(2112)  评论(0编辑  收藏  举报