public bool Raycast(out Vector2 uv, out Vector3 pos)
{
RaycastHit hit;
Ray ray = HandleUtility.GUIPointToWorldRay(Event.current.mousePosition);
if (this.m_Terrain.GetComponent<Collider>().Raycast(ray, out hit, float.PositiveInfinity))
{
uv = hit.textureCoord;
pos = hit.point;
return true;
}
uv = Vector2.zero;
pos = Vector3.zero;
return false;
}