I have a weird memory issue. I have 10 canvases in my scene. If I delete them all, my meshes get removed and memory is reduced, even though I don’t have meshes at all.

If I delete 9 and leave 1, nothing happens. Meshes are still there and the memory is not reduced.

The meshes are my character meshes, which are not even in my scene.


closed as off-topic by DMGregory Jan 10 at 12:35

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about debugging a problem must provide a minimal, complete, verifiable example of the issue so that readers can diagnose it without needing to guess, read all of your code, or engage in extensive back-and-forth dialog. For more information, see this meta thread." – DMGregory
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    \$\begingroup\$ Can you show us the profiling results that are leading you to suspect these character meshes are the source of your memory problems? How are your canvasses set up at present? \$\endgroup\$ – DMGregory Jan 10 at 1:57
  • \$\begingroup\$ Because like I said when I delete all the canvases the memory issue is gone and the character meshes are removed from the profiler.The Profiler says Character_Bla_Bla which is my character \$\endgroup\$ – user122760 Jan 10 at 2:01
  • \$\begingroup\$ Screen Space Camera Canvases \$\endgroup\$ – user122760 Jan 10 at 2:01
  • \$\begingroup\$ Sounds like you should show us the contents of your canvasses. Edit your question so it has enough information that we can reproduce your problem in a new empty Unity project. Then we'll be able to test solutions. \$\endgroup\$ – DMGregory Jan 10 at 2:02
  • 1
    \$\begingroup\$ @user122760 It's better to include new information to the question itself, so new users that attempt to help you have all the details they need without searching the comments. Also there is no general issue with Unity canvas causing memory issues, which would mean you've configured something in a way that it shouldn't, which means the only way someone can help is if you show us how you have your objects configured. \$\endgroup\$ – TomTsagk Jan 10 at 9:58