void BuildColormapList() { colormapNames.Clear(); int index = 0; for (int i = 0; i < DecalsDatabase.allColorMaps.Count; i++) { var map = DecalsDatabase.allColorMaps[i]; colormapNames.Add(new OptionData(map.Name)); if (map.Name == selectedDecal.ColorMapName) { index = i; } } colormapSelector.Options(colormapNames); colormapSelector.SetValueWithoutNotify(index); }
void BuildHeightmapList() { heightmapNames.Clear(); int index = 0; for (int i = 0; i < DecalsDatabase.allHeightMaps.Count; i++) { var map = DecalsDatabase.allHeightMaps[i]; heightmapNames.Add(new OptionData(map.Name)); if (map.Name == selectedDecal.HeightMapName) { index = i; } } heightmapSelector.Options(heightmapNames); heightmapSelector.SetValueWithoutNotify(index); }