UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"follow object with mouse cursor"
public class FollowMouseCursor : MonoBehaviour { private void Update() { transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition) new Vector3(0f, 0f, 1f); } }