/// <summary> /// Change the color, and update all the color selectors to match the same color. /// </summary> /// <param name="pickedColor">The color to change to</param> /// <param name="selector">The selector we used to change the color</param> private void ChangeMaterialColor(Color pickedColor, ColorSelector selector) { if (selectedMaterialSlots.Count < 1) { return; } //Update selected material slot colors (and set first one as layer label color) for (int i = 0; i < selectedMaterialSlots.Count; i++) { selectedMaterialSlots[i].ChangeColor(pickedColor); if (i == 0) { targetInterfaceLayer.UpdateLayerPrimaryColor(); } } //Match other selector colors if (selector == colorPicker) { hexColorField.ChangeColorInput(pickedColor); } else if (selector == hexColorField) { colorPicker.ChangeColorInput(pickedColor); } }