'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);
}
↧