flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

How to Preload Unity to Improve UnityWidget Load Time

Open tihomir-trifono opened this issue 9 months ago • 4 comments

I'm using UnityWidget on one page of my project, and when the user opens that page, it takes a long time to load. I tried setting runImmediately = true on UnityWidget and tested it on Android, but the widget still takes a long time to load when the page is accessed.

Do you have any suggestions on how to preload Unity before the user navigates to the page? Note that if runImmediately = true doesn't works.

*Expected Behavior Unity should be loaded (or preloaded) before the user opens the page containing UnityWidget.

tihomir-trifono avatar Mar 13 '25 16:03 tihomir-trifono

Same here. I would be interested in preloading the Unity framework.

lachezartodorov avatar Mar 16 '25 21:03 lachezartodorov

Same here!

pmstudios avatar Apr 21 '25 00:04 pmstudios

Same here! The pure native unity package starts very quickly, but when flutter packages unity, it feels like the first unity logo takes about four or five seconds, a black screen is displayed, and then it takes four or five seconds to load the unity logo. Is there any good solution?

Daudxu avatar Jun 30 '25 10:06 Daudxu