Tools.AppContentPath C# (CSharp) 메소드

AppContentPath() 공개 정적인 메소드

应用程序内容路径
public static AppContentPath ( ) : string
리턴 string
    public static string AppContentPath()
    {
        string path = string.Empty;
        switch (Application.platform)
        {
            case RuntimePlatform.Android:
                path = "jar:file://" + Application.dataPath + "!/assets/";
                break;
            case RuntimePlatform.IPhonePlayer:
                path = Application.dataPath + "/Raw/";
                break;
            default:
                path = Application.streamingAssetsPath + "/";
                break;
        }
        return path;
    }

Usage Example

예제 #1
0
 static int AppContentPath(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         string o = Tools.AppContentPath();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
All Usage Examples Of Tools::AppContentPath