Clicking an entity

I’m having trouble with making an entity that can be clicked on to select a different camera. any tips or suggestions?

If you want to click on an entity in world space, you have to create a raycast from the mouse’s position. Search up screenToWorld or something similar in the docs. I’m pretty sure there are also various tutorials on how to do something like what you want. Sorry I can’t give the code to you though. I have never done something like that myself, so I’m pretty clueless on how you would use screenToWorld.

Hi @noahdeboi and welcome,

For picking an entity take a look at the following tutorials: