juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.15k stars 525 forks source link

[Huge assets] Build crashes on Android build in MacOS #783

Open najongjine opened 1 year ago

najongjine commented 1 year ago

Describe the bug I used this unity flutter module in past and had no problem. Recently, I added 600 fbx 3d models, unity project got huge (60GB). I'm using MacOS. Build to IOS is working, but build to android crashes in middle of build proccess.

I'm in big dilema

To Reproduce Steps to reproduce the behavior: Unity URP 2021.3.8 Using 600 3d models and placed on scene. Trying to build to android in MacOS

Expected behavior Build and able to launch the app in android.

Screenshots

Unity (please complete the following information):

Smartphone (please complete the following information): Android Samsung S10

timbotimbo commented 1 year ago

Can you test a project without these huge assets, to see if your basic setup works? Please also post an error log to see what exactly is wrong.

All I've got to go on is "it doesn't work with absurdly large assets".

Google play restricts your compressed app size to 150MB (excluding asset bundles), which you will probably exceed. So you might just be running into an android size restriction.