|
Hello there! So, I've this C# script to print a texture in the camera, and resize the texture according with the size of the screen, having the base resolution with 1080px of height. But somehow the texture doesn't show up. Here's the code:
And thanks for the help ;)
(comments are locked)
|
|
Oh well, never mind, found the answer, just needed to create a new variable with the value of screen.height inside: Measuring Screen and HUD Ratio float ScreenHeight = Screen.height; float ScreenWidth = Screen.width; float SizeHeightRelate = ScreenHeight/1080; float SizeWidthRelate = ScreenWidth/1900;
(comments are locked)
|
