您的位置:首页 > 移动开发 > Objective-C

GameObject和gameobject之间的区别

2014-05-04 21:31 525 查看

GameObject is a type of object and acts as a base class for most Unity entities. It refers
to the GameObject stored by unity which holds all Component data related to a GameObject (such as the Transform), the name and various other things.

gameObject is a local variable of type GameObject which is inherited from Component.
It allows one to access the instance of the GameObject to which this component is attached.

gameObject
[/code]
is in most cases functionally the same as

GetComponent("GameObject") as GameObject
[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  unity