Answer the question
In order to leave comments, you need to log in
How to properly manage memory in an application?
Photo and video media files are located in the scene on objects in world coordinates (created there in advance) image - spriterenderer, video - video player component
there is a problem when I create more than one large video in the scene - the application crashes. videos and images are now in a regular folder in the project. I don’t pre-load them on the stage in any way, but only indicated links to the content in the game objects.
how to do it right so that it does not crash?
Answer the question
In order to leave comments, you need to log in
If there are any links on the scene to objects outside the scene, then when the scene is loaded, they all fall into memory. Resources won't help you much, they will just as well kill your application. You need to stream videos directly from disk, for example from the StreamingAssets folder. Details are in the documentation .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question