0
\$\begingroup\$

I don't know what's going wrong. The Text and Slider must be on the red square area. Anyone can help to determine this bug ? Thanks

enter image description here

\$\endgroup\$
2
  • \$\begingroup\$ With this few information, it will be impossible to help you... The anchors or the anchoredPoint (similar to localPosition), may be wrong... You should follow the tutorials of Unity and read the documentation \$\endgroup\$ Commented Apr 9, 2018 at 14:59
  • \$\begingroup\$ Could you provide an image of the inspector when you have one of those elements selected? Also a view of the Hierarchy would help \$\endgroup\$ Commented Apr 9, 2018 at 15:09

1 Answer 1

0
\$\begingroup\$

My friend had found it. The update is just to fast. My code is set the Text and Slider value first before I SetActive(true). It's mean the canvas don't get the chance to update the position because it just too fast.

So the solution is SetActive(true) the canvas first, Then update the canvas position

\$\endgroup\$
1
  • \$\begingroup\$ If the issue is solved, can you mark your question as correct? This will prevent it from popping up in the front page. \$\endgroup\$ Commented Dec 11, 2018 at 12:42

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.