Crosshair

how can i recognize my object’s name or distance with crosshair?

thanks

Look into raycasts.

Set your ray to a ScreenPointToRay(position) and if your crosshairs aren’t fixed than make position equal to your mouse position

You can get information by storing the hit in a RaycastHit and pulling the information from that structure

can u write the code please.

so thanks.

anybody can give me the code please?

There is a script in this thread that demonstrates raycasting.