public void Dispose() { if (points != null) { points.Dispose(); } if (normals != null) { normals.Dispose(); } if (uv0 != null) { uv0.Dispose(); } if (uv1 != null) { uv1.Dispose(); } if (colors != null) { colors.Dispose(); } if (submeshData != null) { submeshData.Dispose(); } if (submeshIndices != null) { submeshIndices.ForEach(i => { if (i != null) { i.Dispose(); } }); } }
public void Dispose() { if (indexes != null) { indexes.Dispose(); } }
public void Dispose() { if (m_bufPoints != null) { m_bufPoints.Dispose(); } if (m_bufRotations != null) { m_bufRotations.Dispose(); } }
public void Dispose() { if (remap != null) { remap.Dispose(); } if (vertices != null) { vertices.Dispose(); } if (normals != null) { normals.Dispose(); } }
private void OnDestroy() { if (m_points != null) { m_points.Dispose(); } if (m_velocities != null) { m_velocities.Dispose(); } if (m_ids != null) { m_ids.Dispose(); } }
public void Dispose() { if (points != null) { points.Dispose(); } if (velocities != null) { velocities.Dispose(); } if (normals != null) { normals.Dispose(); } if (tangents != null) { tangents.Dispose(); } if (uv0 != null) { uv0.Dispose(); } if (uv1 != null) { uv1.Dispose(); } if (rgba != null) { rgba.Dispose(); } if (rgb != null) { rgb.Dispose(); } if ((mesh.hideFlags & HideFlags.DontSave) != 0) { #if UNITY_EDITOR Object.DestroyImmediate(mesh); #else Object.Destroy(mesh); #endif mesh = null; } }