public void DrawTemperatureSlider(LightEditor.Settings settings, SerializedProperty value, Rect rect) { using (new EditorGUI.IndentLevelScope(-EditorGUI.indentLevel)) { k_TemperatureSlider.Setup(settings); k_TemperatureSlider.Draw(rect, value); } }
public void DrawTemperatureSlider(LightEditor.Settings settings, SerializedProperty value, Rect rect) { using (new EditorGUI.IndentLevelScope(-EditorGUI.indentLevel)) { k_TemperatureSlider.Setup(settings); float val = value.floatValue; k_TemperatureSlider.Draw(rect, value, ref val); if (val != value.floatValue) { value.floatValue = val; } } }