public void SetWorldPosition(Vector3 pos) { RectTransform m_rect = GetComponent <RectTransform>(); m_rect.localPosition = M_Math.WorldToCanvasPosition(transform.parent.GetComponent <RectTransform>(), Camera.main, pos, WorldPositionOffset); }
public void SetWorldPosition(Vector3 pos) { RectTransform m_rect = GetComponent <RectTransform>(); m_rect.localPosition = M_Math.WorldToCanvasPosition(transform.parent.GetComponent <RectTransform>(), Camera.main, pos, WorldPositionOffset); }