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

    扫一扫,访问微社区

    application.platform 平台

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

    摘要: application.platform 平台static varplatform:runtimeplatformdescription描述returns the platform the game is running (read only).返回游戏运行的平台(只读)。use this property if you absolutely need to d ...

    application.platform 平台

    static varplatform:runtimeplatform

    description描述

    returns the platform the game is running (read only).

    返回游戏运行的平台(只读)。

    use this property if you absolutely need to do some platform dependent work. see also:runtimeplatform

    如果你要做一些平台相关的操作使用这个属性

    另参见:runtimeplatform

    c#

    javascript

    using unityengine;

    using system.collections;

    public class example :monobehaviour{

    void start() {

    if (application.platform ==runtimeplatform.windowsplayer)

    print("do something special here!");

    }

    }

    function start () {

    if (application.platform ==runtimeplatform.windowsplayer)

    print ("do something special here!");

    }

    文章点评