示例#1
0
        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;
            }
        }
示例#2
0
 void DrawPunctualLightUnitSlider(LightUnit lightUnit, SerializedProperty value, Rect rect, SerializedHDLight light, Editor owner)
 {
     k_PunctualLightUnitSlider.Setup(lightUnit, light, owner);
     k_PunctualLightUnitSlider.Draw(rect, value);
 }