started implementing UI

This commit is contained in:
dereelatwit
2023-08-03 14:05:08 -04:00
parent 374125ba34
commit b8aa2e0935
364 changed files with 63562 additions and 2 deletions
@@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Scroller : MonoBehaviour
{
[SerializeField] private RawImage _img;
[SerializeField] private float _x, _y;
void Update()
{
_img.uvRect = new Rect(_img.uvRect.position + new Vector2(_x, _y) * Time.deltaTime, _img.uvRect.size);
}
}