Beispiel #1
0
 /// <summary>
 /// Constructor with a <see cref="LightUnitSliderUIDescriptor"/>
 /// </summary>
 /// <param name="descriptor">The <see cref="LightUnitSliderUIDescriptor"/></param>
 public LightUnitSlider(LightUnitSliderUIDescriptor descriptor)
 {
     m_Descriptor = descriptor;
 }
        /// <summary>
        /// Constructs the temperature slider
        /// </summary>
        /// <param name="descriptor">The descriptor</param>
        public TemperatureSlider(LightUnitSliderUIDescriptor descriptor) : base(descriptor)
        {
            var halfValue = 6500;

            PrepareExponentialConstraints(m_Descriptor.sliderRange.x, halfValue, m_Descriptor.sliderRange.y);
        }