using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteAlways] public class BurValue : MonoBehaviour { [Range(0,10)]public float Value; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { Shader.SetGlobalFloat("_Value",Value); } }