UnityTileMap icon indicating copy to clipboard operation
UnityTileMap copied to clipboard

Update TileMeshQuadGridBehaviour.cs

Open rakkarage opened this issue 10 years ago • 2 comments

getting the uv list from the mesh each time you set a tile makes a new copy of the list each time and in profiler it spikes gc often if setting tiles often

storing it removes all gc

thanks

rakkarage avatar Apr 21 '15 16:04 rakkarage

Isn't _uv always null? It seems to never be assigned.

alexanderfast avatar Jul 01 '15 09:07 alexanderfast

In line 50 of CreateMesh() the array for _uv is created.

aggsol avatar Jul 30 '15 08:07 aggsol