コード例 #1
0
    public void MarkByScreenPoint(Vector3 screenPoint)
    {
        Ray        ray = Camera.main.ScreenPointToRay(screenPoint);
        RaycastHit hit;

        if (Physics.Raycast(ray, out hit))
        {
            point = hit.point;
            marker.transform.position = hit.point;
            SetText(hit.point, plotter.GetSurfaceBySlot(hit.collider.gameObject));
        }
    }