How do you get viewport coordinates only of the visible area when using a fixed aspect ratio
I am looking for a way to accomplish something similar to GetViewportSize but only for the actual visible area. I.e., the camera bounds rather than the screen bounds.
It is important in my game that the players not see beyond the intended area, thus a fixed aspect ratio. The player uses the mouse to indicate where the pawn should move to. I accomplish this using the mouse coordinates fed into a LinePlaneIntersection node to get the corresponding world location of the mouse. In order to keep the player from moving the pawn off screen I need to constrain the coordinates fed into the LPI to the visible area. However, constraining it requires knowing where the bounds are, hence my question.
asked Feb 06 '19 at 10:56 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here