- Home /
Load UI before heavy GameObject
I got a problem, I want to load a scene and after instantiate a Heavy gameobject. I use LoadSceneAsync but because of this GameObject, the scene need more or less 30s to be loaded and without display. What I want is to load the UI of the scene and after load the GameObject so it will be faster than load everything in the same time. Sorry I can't share code because it's a POC for a big client with confidentiality.
Thanks in advance
Why don't you create two scenes : One for your UI, the other containing your heavy Gameobject ? Then, load asynchronously the 1st, then, the 2nd.
However, if there is UI, the users will want to use it and if your model is not loaded, it can be annoying.
or you can make the heavy gameobject a prefab and load it from the Resources folder when the scene already loaded
Loading using Resources.Load must be avoided as much as possible because it's very heavy because the assets in this folder are not compressed by Unity.
could you paste a link to that info? doesn't say anything about it in the resources folder doc
Sorry I can't comment uppper because I don't have enough permission.
@hexagonius : I already instantiate GameObject from resources folder with resources.load() function. the Heavy GameObject is a prefabs but with a lot of GameObject inside.
@Hellium : for more explanations, the scene is a plane 3D viewer where the customer can rotate in 3D the plane but in same time he can fill some informations on the UI in TextField, Dropdown, ... what he want is to start fill the information while waiting the end of plane instanciation.