- Home /
How can I upload AssetBundles to AWS S3 with Unity Cloud Build?
Is anyone uploading any kind of file in amazon S3 inside unity? Just wanted to know if anyone did it with success with different way.
In my project, I am using AWS Mobile SDK for Unity and uploading all my asset bundles (working for Android and iOS) in Amazon S3 authomated. The trick to do it, is with basically the following code
public static void UploadAssetBundles()
{
EditorApplication.isPlaying = true;
EditorApplication.NewScene();
GameObject pGO = new GameObject("AssetBundleUploader");
pGO.AddComponent<AssetBundleUploader>();
}
In the class AssetBundleUploader, I do all the process to send within AWS SDK. The problem is that unity cloud build is ignoring this code "EditorApplication.isPlaying". AWS SDK does not run in editor mode, thats why I have to play to work.
Using Latest Unity 4.x (Non Beta).
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
put build on website to send to testers ios? 0 Answers
Programmatically get player size statistics after build? 0 Answers