gatosyocora / MeshDeleterWithTexture

Unity Editor extension to remove meshes by filling texture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempting to create a zero length compute bufferというエラーがでる

gatosyocora opened this issue · comments

UVを取得するときにtriangleの数を入力としたComputeShaderを使用しているが、削除によってtriangleが0になったSubMeshがあり、それを入力しているのが原因っぽい
triangleが0のときはUVは存在しないのでComputeShaderの計算自体しないように条件分岐する