I added slider to control the brightness in my game. It give me no error but i cant move it. I changed the Lightness from skybox to color. here is my code:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class lightness : MonoBehaviour {
public Slider Brightness;
float bri;
// Use this for initialization
void Start () {
volumeSlider.value = 0.5f;
}
// Update is called once per frame
void Update () {
Brightness.value = bri;
RenderSettings.ambientLight = new Color (bri,bri,bri,1);
}
}
How to fix this ?