//ターゲットフラグを、ビルドターゲットに変換 public static BuildTarget BuildTargetFlagToBuildTarget(AssetBundleTargetFlags flag) { switch (flag) { case AssetBundleTargetFlags.Android: return(BuildTarget.Android); case AssetBundleTargetFlags.iOS: return(BuildTarget.iOS); case AssetBundleTargetFlags.WebGL: return(BuildTarget.WebGL); case AssetBundleTargetFlags.Windows: return(BuildTarget.StandaloneWindows64); case AssetBundleTargetFlags.OSX: #if UNITY_2017_3_OR_NEWER return(BuildTarget.StandaloneOSX); #else return(BuildTarget.StandaloneOSXUniversal); #endif default: Debug.LogError("Not support " + flag.ToString()); return(0); } }
//ターゲットフラグを、ビルドターゲットに変換 public static BuildTarget BuildTargetFlagToBuildTarget(AssetBundleTargetFlags flag) { switch (flag) { case AssetBundleTargetFlags.Android: return(BuildTarget.Android); case AssetBundleTargetFlags.iOS: return(BuildTarget.iOS); //case AssetBundleTargetFlags.WebPlayer: // return BuildTarget.WebPlayer; case AssetBundleTargetFlags.WebGL: return(BuildTarget.WebGL); case AssetBundleTargetFlags.Windows: return(BuildTarget.StandaloneWindows64); case AssetBundleTargetFlags.OSX: return(BuildTarget.StandaloneOSXUniversal); default: Debug.LogError("Not support " + flag.ToString()); return(0); } }