Came to a rather interesting behavior.
I couldnt sent a direct message from my main.script directly to a board.gui_script…script.
I had to pass the message from main_script to board.script.
Can somebody shine a light on this message flow. Am i just making message passing mistake here or thats how its supposed to be? I’m not sure this was explained in the Message passing documentation.
I’ve not fully worked with message passing yet. Have you tried the methods described here?
From my understanding on the way its organized, a script attached to a gameobject can be referenced by an id. The scripts assigned to gui lives as part of the containing gameobject and is considered internal. I dont see an id property on the gui object which tells me how to reference it through a message path. I’ll certainly look at the manual for clarity. Thanks for the resource.
Could you upload an empty project with a sample of what you mean?
The gui script can be referenced by the component id. If you call the game object “my_object” and the gui component “my_gui” you can address it with “my_object#my_gui” (assuming the sender is in the same collection).
Thanks, I’ll try that out.
Thanks Brian. I’ll see what i can do.
Works. I ended up using the script attached to gameobjects hold the actual values/properties and then send a message to the gui script to perform ui binding. Gui script only stores references to the nodes.
The main script is referenced as #script and gui as #gui. I think this is the default names within this scope.
I should say that the gui is inside the gameobject.