Answers for "unity mouse click screen"

C#
1

unity mouse click screen

var cameraloc:Camera; 
var mousePos:Vector3; 
var worldPos:Vector3; 
cameraloc = GameObject.Find("Camera").GetComponent(Camera); 
mousePos = Input.mousePosition; 
worldPos = cameraloc.ScreenToWorldPoint(mousePos);
Posted by: Guest on November-22-2020

C# Answers by Framework

Browse Popular Code Answers by Language