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

    扫一扫,访问微社区

    animation.clip 剪辑

    2014-12-31 01:30| 发布者: 杨炎| 查看: 2298| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

    摘要: animation.clip 剪辑varclip:animationclipdescription描述the default animation.默认的动画剪辑。c#javascriptusing unityengine;using system.collections;public class example :monobehaviour{public ienumerat ...

    animation.clip 剪辑

    varclip:animationclip

    description描述

    the default animation.

    默认的动画剪辑。

    c#

    javascript

    using unityengine;

    using system.collections;

    public class example :monobehaviour{

    public ienumerator awake() {

    animation.play(animation.clip.name);

    yield return newwaitforseconds(animation.clip.length);

    }

    }

    animation.play(animation.clip.name);

    // wait for the animation to have finished

    // 等待动画完成。

    yield waitforseconds (animation.clip.length);

    相关阅读

    文章点评
    相关文章