Hey all, looking for help with some spawning info for a side-scrolling beat em up I'm working on in UE5.1
I'm trying to spawn the enemies in just slightly offscreen so they can walk in from out of the players view, to get this point I'm using Get Viewport Size, dividing it by 2, and setting that as an offset for the spawn X transform based on the x location for a spawn point trigger box (the x value centered just about where that door is behind the player)
Unfortunately what's happening is it's going much further to the left or right than just off screen by a pretty large margin and I'm just not sure why the viewport size seems to be so much larger than what the camera can actually see.
I did try and see if I could get the ortho view from the camera, but you can't seem to run a Get Ortho View on the camera, so that doesn't seem like an option either.
In the picture, the space between the white boxes is what the camera can view (they're the level bounds to stop the player from moving when locked into a battle sequence). I'd expect the enemies to spawn just to the left or right of those, but as you can see it's much further.