public HoverTextDrawer BeginDrawing() { Vector2 localPoint = Vector2.zero; Vector2 screenPoint = KInputManager.GetMousePos(); RectTransform rectTransform = base.transform.parent as RectTransform; RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform, screenPoint, base.transform.parent.GetComponent <Canvas>().worldCamera, out localPoint); float x = localPoint.x; Vector2 sizeDelta = rectTransform.sizeDelta; localPoint.x = x + sizeDelta.x / 2f; float y = localPoint.y; Vector2 sizeDelta2 = rectTransform.sizeDelta; localPoint.y = y - sizeDelta2.y / 2f; drawer.BeginDrawing(localPoint); return(drawer); }