You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get a plane to fit to screen. I've using UseAspect and generally it's awesome. However now I'm trying to work out how use to ScaleFactor to get more of a 'contain' vibe, i.e. so the whole image fits inside the screen.
If I know the image with, height. I'm assuming the calculation is based on data from the ViewPort I just can't work out what the calculation should be to reduce the scalefactor so the whole image fits to screen.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I'm trying to get a plane to fit to screen. I've using UseAspect and generally it's awesome. However now I'm trying to work out how use to ScaleFactor to get more of a 'contain' vibe, i.e. so the whole image fits inside the screen.
If I know the image with, height. I'm assuming the calculation is based on data from the ViewPort I just can't work out what the calculation should be to reduce the scalefactor so the whole image fits to screen.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions