Hello, I’m making a game where the player moves by clicking on a point in the world. How do I go about highlighting where the player clicks on the ground?
‘Highlighting’ is a pretty vague term, but if you’d like to instantiate something like a particle system where you clicked (or a light, anything really) you’ll need to use Raycast.
RaycastHit hit;
if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit, Mathf.Infinity))
{
Instantiate(yourPrefab, hit.point, Quaternion.identity);
}