Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

keep sprites at fixed transform according to screen resolution unity

Vector3 pos = Vector3(15, Screen.height - 15, 10);
transform.position = Camera.main.ScreenToWorldPoint(pos);
 
PREVIOUS NEXT
Tagged: #sprites #fixed #transform #screen #resolution #unity
ADD COMMENT
Topic
Name
6+9 =