Exemplo n.º 1
0
    public void SetWorldPosition(Vector3 pos)
    {
        RectTransform m_rect = GetComponent <RectTransform>();

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