public void RemoveGrassMap(FoliagePrototype prototype) { if (grassMaps.ContainsKey(prototype)) { FoliageGrassMap grassMap = grassMaps[prototype]; grassMaps.Remove(prototype); #if UNITY_EDITOR grassMap.Dispose(); #endif } }