- Home /
Question by
kiszkilukiszki · Apr 22, 2021 at 12:04 PM ·
unity 5meshmemory
How can i destroy a mesh?
How can i destroy mesh that isn't used anymore, because my game has allocate new mesh every single frame and i want to destroy other. I tried to use Destroy(myGameObject.GetComponent().mesh); but it seems to only remove component of meshFilter, not remove mesh from the memory, I would be very grateful if someone help me.
Comment