• component.gameobject 游戏物体 - 脚本手册 - -【游戏蛮牛】-游戏出海,ar增强现实,虚拟现实,unity3d,unity3d教程下载首选u3d,unity3d官网 - Powered by Discuz!
     找回密码
     注册帐号

    扫一扫,访问微社区

    component.gameobject 游戏物体

    2015-1-5 04:07| 发布者: 杨炎| 查看: 1815| 评论: 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);

    相关阅读

    文章点评
    相关文章