using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CameraConvertSceneEffect : MonoBehaviour { public float twist = 0; private Material mat; // Start is called before the first frame update void Start() { RawImage raw = this.GetComponent(); mat = raw.material; } // Update is called once per frame void Update() { mat.SetFloat("_Twist", twist); } }