コード例 #1
0
        public static void BuildAssetBundlesForCurrentPlatform()
        {
            var targetPlatform = AssetBundleEditorUtility.GetCurrentBuildTarget();

            if (targetPlatform != BuildTarget.NoTarget)
            {
                var options = AssetBundleEditorUtility.GetBuildOptions();
                AssetBundleBuilder.Build(targetPlatform, options);
            }
            else
            {
                Debug.LogError("Current platform has not supported.");
            }
        }
コード例 #2
0
        public static void BuildAssetBundlesForWebGL()
        {
            var options = AssetBundleEditorUtility.GetBuildOptions();

            AssetBundleBuilder.Build(BuildTarget.WebGL, options);
        }
コード例 #3
0
        public static void BuildAssetBundlesForWindows()
        {
            var options = AssetBundleEditorUtility.GetBuildOptions();

            AssetBundleBuilder.Build(BuildTarget.StandaloneWindows64, options);
        }