Home > front end >  How to Upload an Asset Bundle to a Remote Server in Unity
How to Upload an Asset Bundle to a Remote Server in Unity

Time:09-17

I already know how to set a function for creating Asset Bundle in unity locally. First I set a local directory for Asset Bundle files, Then I upload the files to Dropbox and it works! But I was wondering if I could upload the Asset Bundle files to the server directly. I know about POST, But I don't know how to implement it in this case

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

public class AssetBundleCreate : Editor
{
    [MenuItem("Assets/Create AssetBundle")]
    static void CreateAssetBundle()
    {
        BuildPipeline.BuildAssetBundles(@"C:\Users\Heisenberg\Desktop\AssetBundle",BuildAssetBundleOptions.ChunkBasedCompression,BuildTarget.StandaloneWindows64);
    }

}

CodePudding user response:

For manager assets bundle you use to Addressable Assets this is best for download and upload asstes

https://docs.unity3d.com/Packages/[email protected]/manual/index.html

https://www.youtube.com/watch?v=XIHINtB2e1U

CodePudding user response:

Try firebase. (actually, firebase storage)

And also read this if you want to upload your stuffs with Unity. (i think it also works with Unity Editor) https://firebase.google.com/docs/storage/unity/upload-files

firebase storage has its own CDN, so faster than AWS s3. (AWS also has its CDN solution, but not automatically integrated with S3)

  • Related