I want to load object from my computer or google drive.

Hi, I just succeeded load an object with asset bundle.

However, this method can only load objects that I have previously designated.

I want to load the desired object from the computer or Google Drive with one Load button.

I do not know how to solve this problem. Give me some advice.

Thanx.

take a look into the System.IO class
File Clase (System.IO) | Microsoft Learn
and UnityWebRequest
Unity - Scripting API: UnityWebRequest
classes for achieving that

Thanx. I am trying to solve this problem with UnityWebRequest.

But I have 2 errors now. but I can not find why…

Here are my script and errors. (I do not know much about C#…that is why)

My final goal is loading object what I want during play a game. For that, I need public tap ‘Asset Name’ to choose what I want. (I will make asset bundles with some objects and upload to my google drive first)

Give some advice. Thanx.

Thank you for your commnet xxmariofer.

It seems difficult to give advice because it shows only a part sorry. Explaining the purpose would be a little more efficient, so I will explain. I am trying to make an Asset Bundle called ‘Tree’. The ‘Tree’ contains various 3D obj file trees; Firtree, Oaktree, Palmtree, etc.
I want to upload that asset bundle to my google drive and select and load it while playing the game. I set it so that it can be loaded by clicking the button called ‘Load’. Further, we want to load the selected obj file by entering the desired tree (ex. Firtree) in the game.

So I included assetName (=File name like Firtree) and bundleURL (= my Google Drive address) as public. As I went around YouTube and forums and tried to match the sources little by little, I was getting an error I didn’t understand.

In summary, I want to know how to load the desired object into the game within the Asset Bundle uploaded to Google Drive.

There are still many things that are still lacking, so I would like you to explain in detail. Thank you very much.

[171207-error2.jpg|171207]