Click Vector3 position to change color
Hello, I had built a terrain which have a lot of colors.
And I am able to use mouse to click a point then getting Vector3 position,
like this (72.4, 11.8, 31.5)
How to click and then change the color of that position?
void ProcessClick()
{
//ClickPosition
Vector3 ClickPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3 PositionOnMesh = ClickPosition - transform.position;
Debug.Log(PositionOnMesh);
Comment