/// <summary> /// Get current platform path by asset /// </summary> /// <returns>a path string</returns> public static string GetCurrentPlatformPath() { TargetPlatform targetPlatformConfig = AssetDatabase.LoadAssetAtPath <TargetPlatform>(TARGET_PLATFORM_CONFIG_PATH); Debug.Assert(null != targetPlatformConfig, "Get platform config failed, Please make sure already created the \"PlatformConfig.asset\" file in the Resources Folder!"); return(targetPlatformConfig.GetCurrentPlatformPath()); }