找回密碼
 注冊帳號

掃一掃,訪問微社區

component.gameobject 游戲物體

2015-1-5 04:07| 發布者: 楊炎| 查看: 1789| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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);

相關閱讀

文章點評
相關文章
女校游泳队彩金