HOW TO MAKE LOADING FUNCTION

i wan’t to make a loading function but don’t know how to make it

if anyone can gime me the script??

Depends on what you want to load: another scene or a saved game?

–

1 Answer

1

Like everyone else commented in your question, it would depend a lot on what you want to do.

That said, if it was me doing it i would make 2 Threads in my program, one to run the loading(waiting) animation GUI and another to load all the stuff you want behind(i.e. textures, start\initializing variables, loading sounds, etc), when all of it was loaded you would abort the ‘loading’ thread and start the scene in the one you loaded all the stuff.

Still my answer could be wrong since i haven’t done it yet, but that’s how I’m planing to do my’n in the recent future anyway.