반응형
Notice
Recent Posts
Recent Comments
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

Do Something IT

[Unity3D]에디터 빌드 플렛폼 셋팅 정보 가져오기 본문

Unity3D

[Unity3D]에디터 빌드 플렛폼 셋팅 정보 가져오기

아낙시만더 2015. 6. 11. 14:02
반응형

아래와 같이 알아올수 있다



    /// 
    /// 현재 에디터 빌드 플랫폼 셋팅 정보를 가지고 온다.
    /// 
    /// 
    int GetCurPlatformSetting()
    {
        int platform = 0;
        BuildTarget bt = EditorUserBuildSettings.activeBuildTarget;
        if (bt == BuildTarget.StandaloneWindows)
            platform = 0;
        else if (bt == BuildTarget.Android)
            platform = 1;
        else if (bt == BuildTarget.iPhone)
            platform = 2;
        return platform;
    }
반응형
Comments