component.gameobject 游戏物体

2015-1-5 04:07| 发布者: 杨炎| 查看: 1551| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: component.gameobject 游戏物体vargameobject:gameobjectdescription描述the game object this component is attached to. a component is always attached to a game object.组件附加的游戏物体。一个组件总是被附 ...

component.object" target="_blank" class="relatedlink">gameobject 游戏物体

vargameobject:gameobject

description描述

the game object this component is attached to. a component is always attached to a game object.

组件附加的游戏物体。一个组件总是被附加到一个游戏物体。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

print(gameobject.name);

}

}

print (gameobject.name);

相关阅读

文章点评
相关文章