robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 28 Jun 2017 12:29 PM |
so for players with different screen sizes how do you combat things getting cut out of their view when you're forcing a player's view?
for example: i want to create a inventory system where the player is on the left side of the screen and the gui on the right; but i dont know how to keep it proportional
|
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
| |
|
Lucas_Lua
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7521 |
|
|
| 28 Jun 2017 07:23 PM |
You know, I've never actually thought about accommodating for that...
There are properties for getting the viewport size and checking if something is on the screen in the Camera object (WorldToScreenPoint I believe). I think I see a new method called GetLargestCutoffDistance that is exactly what you're asking for, but I'm not familiar with it at all. |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 28 Jun 2017 08:27 PM |
ok anyone else got any ideas how to do this
|
|
|
| Report Abuse |
|
|