public void Cleanup() { if (m_Atlas != null) { m_Atlas.Release(); } CoreUtils.Destroy(m_DecalMesh); // set to null so that they get recreated m_DecalMesh = null; m_Atlas = null; }
public void Cleanup() { if (m_Atlas != null) { m_Atlas.Release(); } foreach (var pair in m_DecalSets) { pair.Value.Cleanup(); } CoreUtils.Destroy(m_DecalMesh); // set to null so that they get recreated m_DecalMesh = null; m_Atlas = null; }