Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity camera.main.screentoworldpoint(input.mouseposition) not working

ScreenToWorldPoint receives a Vector3 argument where x and y are the screen coordinates, and z is the distance from the camera. Since Input.mousePosition.z is always 0, what you're getting is the camera position. -Aldonaletto
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to jump in unity using physics 
Csharp :: c# convert bool to string 
Csharp :: declare prop array c# 
Csharp :: c# string verbatim 
Csharp :: how to show a first item in a combobox in c# winforms 
Csharp :: c# get all id of list object 
Csharp :: elasticsearch nested aggregation in c# 
Csharp :: get list of constants in class c# 
Csharp :: c# define array 
Csharp :: static initializer 
Csharp :: c# exception middleware 
Csharp :: create dropdown in datatable c# dynamically 
Csharp :: exception is null c# 
Csharp :: symfony debug bar 
Csharp :: c# list initialize 
Csharp :: access denied tring to save a file uwp xamarin 
Csharp :: muovere un elemento in c# 
Csharp :: DataGridView set column cell Combobox 
Csharp :: list equals in order c# 
Csharp :: dynamics 365 create record c# 
Csharp :: find the values of dictionaries in C sharp 
Csharp :: get one parameter from list in an new list c# 
Csharp :: core ui switch 
Csharp :: c# panel to graphics 
Csharp :: pyqt send message to another instance 
Csharp :: mailkit send email c# 
Csharp :: upload file add more size webconfig in asp.net mvc 
Csharp :: vb.net delete line from text file 
Csharp :: unity player movement script 3d 
Csharp :: jittery movement unity 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =