我已經知道如何設定在unity本地創建資產包的功能。首先,我為Asset Bundle檔案設定了一個本地目錄,然后我把檔案上傳到Dropbox,它就能作業了!但我想知道我是否可以直接把Asset Bundle檔案上傳到服務器上。但我想知道我是否可以直接將資產包檔案上傳到服務器。我知道POST,但我不知道在這種情況下如何實作它
。using System.Collections.Generic; using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class AssetBundleCreate : 編輯器
{
[MenuItem("Assets/Create AssetBundle") ]
static void CreateAssetBundle()
{
BuildPipeline.BuildAssetBundles(@"C:UsersHeisenbergDesktopAssetBundle",BuildAssetBundleOptions.ChunkBasedCompression,BuildTarget.StandaloneWindows64)。)
}
}
uj5u.com熱心網友回復:
對于經理資產捆綁,你使用可尋址資產,這是最好的下載和上傳asstes
https://docs.unity3d.com/Packages/[email protected]/manual/index.htmlhttps://www.youtube.com/watch?v=XIHINtB2e1U
uj5u.com熱心網友回復:
試試firebase。(實際上是Firebase存盤)
如果你想用Unity上傳你的東西,也可以閱讀這個。(我想它也適用于Unity編輯器) https://firebase.google.com/docs/storage/unity/upload-files
firebase存盤有自己的CDN,所以比AWS s3快。(AWS也有它的CDN解決方案,但沒有自動與S3集成)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/312444.html
標籤:
上一篇:Unity,C#-使用滑鼠的指標
