At present, in my application, all objects are loaded but hidden, i.e. under the floor plane.
The reason for this was to ensure that all loading occurs at the beginning of the app and not throughout. I'm aiming for a smooth run-through regardless of initial load time.
Now, my question is, if the Mesh Renderer is inactive, does this mean that any processing power for rendering the object is saved and as a result the app runs smoother? Or does disabling the mesh renderer simply hide the object from the viewer?
There are about 10 objects in total, each are used at different times, so a solution to save memory and hide any irrelevant objects would be greatly appreciated
AFAIK disabling the renderer does remove the object from the rendering queue and is the only solution.
One could suggest to disable the whole gameObject (with SetActiveRecursively for example). But in my experience this removes almost everything from memory which is not what you want.
I will let experts answer this question (that's why I will keep my contribution as a comment)
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
6 People are following this question.
Possible material or mesh leak
how do I remove a class item from a list?
unity puts all the game scripts to memory
Memory leak with Streaming terrains
Textures/Atlases and memory management