protected void OnDestroy() { material = null; SysFont.SafeDestroy(_createdMaterial); if (_texture != null) { _texture.Destroy(); _texture = null; } }
protected void OnDestroy() { if (_texture != null) { _texture.Destroy(); _texture = null; } SysFont.SafeDestroy(_mesh); SysFont.SafeDestroy(_createdMaterial); _createdMaterial = null; _material = null; _vertices = null; _uv = null; _triangles = null; _mesh = null; _filter = null; _renderer = null; }