Search Unity

RectTransform offset values becomes "¤¤¤" after setting anchors from script.

Discussion in 'Editor & General Support' started by JoelTikab, Mar 15, 2019.

  1. JoelTikab

    JoelTikab

    Joined:
    Jan 11, 2019
    Posts:
    2
    * The picture explains the problem.
    * The same string is printed when i Debug.Log(myRectTransform.offsetMin.x) and Debug.Log(myRectTransform.offsetMax.x).
    upload_2019-3-15_9-54-0.png

    Please help!
     
  2. JoelTikab

    JoelTikab

    Joined:
    Jan 11, 2019
    Posts:
    2
    Solution:
    - Set anchorMin and anchorMax as wanted.
    - Set anchoredPosition to whatever.
    - Set offsetMin and offsetMax as wanted.