Hi, I´m making simple FPS game and I want add some buttons (like switches to turn the lights on) to this game and I don´t know how pls help me.
Hi, welcome to the forum!
You can detect which object is under the mouse, crosshair or any other point on the screen using raycasting. Check out this thread for some code and an explanation of how to do this.
THX for your posts, it really helped me !