The question is simple enough, how do I retrieve the dimensions of a particular player's UI? A direct method would be preferred (a property stored somewhere) though more creative solutions will be entertained so long as they are reliable in their results.
The question is simple enough, how do I retrieve the dimensions of a particular player's UI? A direct method would be preferred (a property stored somewhere) though more creative solutions will be entertained so long as they are reliable in their results.
Not exactly. While the dimensions of the UI do scale as resoution changes they are not the same value. All 16:9 aspect ratios will share the same UI dimensions though they may run at various resoutions. I am working on a mechanic that relies on knowing the position of the cursor relative to the center of the Screen. This particular mechanic does not function correctly when making use of the relative cursor/camera world positions due to panning/latency issues. What I require is a static point of reference, in this case, the center of the UI.
The question is simple enough, how do I retrieve the dimensions of a particular player's UI? A direct method would be preferred (a property stored somewhere) though more creative solutions will be entertained so long as they are reliable in their results.
Thanks in advance.
Do you mean thier screen resolution?
@Molsterr: Go
Not exactly. While the dimensions of the UI do scale as resoution changes they are not the same value. All 16:9 aspect ratios will share the same UI dimensions though they may run at various resoutions. I am working on a mechanic that relies on knowing the position of the cursor relative to the center of the Screen. This particular mechanic does not function correctly when making use of the relative cursor/camera world positions due to panning/latency issues. What I require is a static point of reference, in this case, the center of the UI.