Hi all.
I found out that I can not access from GUI Script to GO properties. And now I have questions when best method to send GO property to GUI script. Post msg before use required data or something other method?
Thank you.
Hi all.
I found out that I can not access from GUI Script to GO properties. And now I have questions when best method to send GO property to GUI script. Post msg before use required data or something other method?
Thank you.
Message posting is probably a good idea, unless you need to pass a lot of data often. But if it’s something like updating a score or a health bar then msg.post() should work.
Thank you.
I need sometimes recieve GO position.
I see. Why do you need that in the UI? To position some GUI element at the position of the game object?
Yes. I need position dialog babble relatively game hero.
Ah, I see. Ok, so that should work well to pass along as a message.
Depending on the complexity of the dialog bubble it could also be created using a game object with a sprite and a label.
Thank you for hint with GO and sprite, but system was create on GUI and change coordinats it new feature:)