How i can acces gui script. Please give me exemples not references to tutorials.
If you have a GUI component “my_gui” in game object “my_object” and the GUI component has a GUI script added, you can access it from any other script or gui script with messages:
msg.post("my_object#my_gui", "hello_gui")
In the GUI script:
function on_message(self, message_id, message, sender)
if message_id == hash("hello_gui") then
msg.post(sender, "hello_back")
end
end
Edit: It seems like you have misunderstood message passing and perhaps mixed them up with API function calls. You should take the time and study how message passing works in Defold. Message passing in Defold
Since you send messages to socket “level” with the URL “level:CompGui#…” you need to understand what a socket is. They are a way to address different “systems” or “worlds” in the engine. For instance for the main collection read at startup and for collections loaded through a proxy.
yhank you for your help now all going well


