UPF/Assets/Game/Scripts/UIAnchorToWorldPoint.cs
2022-12-14 01:49:10 +05:30

13 lines
292 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIAnchorToWorldPoint : MonoBehaviour
{
public Transform worldPoint;
void Update()
{
transform.position = TutorialManager.UICamera.WorldToScreenPoint(worldPoint.position);
}
}