로딩
티스토리 데이터 처리 중입니다.

유니티 C# Canvas UI 화살표 특정 좌표로 반복 이동시키기 간단 구현

 유니티 C# Canvas UI 화살표 특정 좌표로 반복 이동시키기 간단 구현

코드 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MoveArrow : MonoBehaviour { private RectTransform rectTransform; private Vector2 originalPosition; public Vector2 targetPosition; public float moveSpeed = 2f; private void Awake() { rectTransform = GetComponent(); } private void OnEnable() { originalPosition = rectTransform.anchoredPosition; MoveToT.....