21 lines
383 B
C#
Raw Normal View History

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);
}
}