Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        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;
                }
            }
        }