void DrawPunctualLightUnitSlider(LightUnit lightUnit, SerializedProperty value, Rect rect, SerializedHDLight light, Editor owner) { k_PunctualLightUnitSlider.Setup(lightUnit, light, owner); float val = value.floatValue; k_PunctualLightUnitSlider.Draw(rect, value, ref val); if (val != value.floatValue) { value.floatValue = val; } }
void DrawPunctualLightUnitSlider(LightUnit lightUnit, SerializedProperty value, Rect rect, SerializedHDLight light, Editor owner) { k_PunctualLightUnitSlider.Setup(lightUnit, light, owner); k_PunctualLightUnitSlider.Draw(rect, value); }