Loading Screen for tasks that take longer than a frame?

Hey! :slight_smile:
My programm has some code that takes a screenshot and mails it to the user, unfortunately this process is taking a while and I would like to indicate to the user that the app has not crashed with a simple small animation that is running in the meantime.
I tried adding a canvas with an image that rotates every frame, but when doing the screenshot/mail operation frames are not called regularly so the animation is not really playing :I

Could anyone hint me in the right direction on how to go about this? Would async operations help? Or can I somehow run the screenshot/mail code in a background task so the animation still gets regular frame updates?

Greetings :slight_smile:

Used Threads to fix the isse :slight_smile: Created a thread for the heavy load and played the loading animation on the unity main thread.