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.09k stars 505 forks source link

How using this pluging with asset-protection? #900

Open FetFrumos opened 7 months ago

FetFrumos commented 7 months ago

@juicycleff thank you for your plugin - it is great. But now I have issue: I want to protect my assets. for this I use the following plugin asset-protection. But after using asset-protectio - I can't export to flutter. I get an endless loop - dialog windows with title "compile shader variants"

image

Can you give me some advice? maybe you can do something "manually" without waiting for an update, because this is an urgent matter. any help - I will be grateful

thedrhax14 commented 7 months ago

This is unity related issue mostly due to usage of different materials or a lot of models or complex shader graphs. That is a known issue of unity in general: https://forum.unity.com/threads/compiling-shader-variants-taking-ages.527724/. Consider to asset bundle and reviewing all the assets that are used in scenes and optimizing them