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
\$\begingroup\$
\$\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\$Hellium– Hellium2018-04-09 14:59:16 +00:00Commented 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\$Tom Tsagkatos– Tom Tsagkatos2018-04-09 15:09:28 +00:00Commented Apr 9, 2018 at 15:09
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
1
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
-
\$\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\$Tom Tsagkatos– Tom Tsagkatos2018-12-11 12:42:22 +00:00Commented Dec 11, 2018 at 12:42
