Download

Selecting objects in the center of the screen

Hi, i have a game with a crosshair in the center of the screen, and i want to select items in game by clicking on them with that crosshair. I know how to do it with mouse cursor, but when cursor is invisible i dont know where it is. Do you know any solution ? Maybe freeze cursor in the center of the screen or something. Thanks!

Check my post here, it explains it I think.

Do i have to have a camera on my pawn ? I’m new to UE4 and I’m using pawn from unreal demo Realistic Rendering. And should I do it in level blueprint or pawn or player controller ? Thanks

You need a camera… it gives you control. I know the engine gives a camera when none is present… but you need to control it, it’s the right thing to do.

Whereever you camera is, is up you to I guess.

And doing what I showed you there, do it where the camera is.