12345678910111213141516171819202122 |
- 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<RawImage>();
- mat = raw.material;
- }
- // Update is called once per frame
- void Update()
- {
- mat.SetFloat("_Twist", twist);
- }
- }
|