Jump to content
  • 0
Igor Q.

RESOLVED [YLD-18843] UI BUG - Get Text

Question

Strange Bug I found.

I set a chain of UI. Where the Button (Player 1 Select) has text (Player 1).

Player 1 Text will be set to online players.
image.thumb.png.bfd3cd082ebb4b2d8ac6f1a665d5c9eb.png
image.png.7e475906769379d38af9a54fdc294544.png

I then try to recall the information using the console function.

Button = Player 1 Select

image.png.0921c8405b21ca40681de956d2de7f06.png

image.thumb.png.e7e3d85621d9c86b69b45b00e6ed3729.png

As I try to click my own name it only shows up as "TEXT".

 

Edited by Igor Q.

Share this post


Link to post
Share on other sites

3 replies to this bug / suggestion

Recommended Posts

  • 0

@Igor Q.i tested something. Probably you've already too.

Well, i'm not using child nodes. Which doesn't make sense, because custom UI should work with parents and childs (like Unity3D does), affecting the proper functioning of the window. But I think i got a go around of the problem.

So, move the text outside of the button parent. In my case you see that the Image is the "parent" and has 2 childs: button and text.
The text is NOT child of the button. As i said before they need to fix this.


20190917082330_1.thumb.jpg.72a314d16577e234b7aa89fc50034305.jpg

Then the script for custom window logic

image.png.015d0d18724afbfd65e05234bbc003ef.png

Yes, I know this is not practical, but it works.

They need to fix this for us :D

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×