I want to get the absolute url (or a hash to it) of the current gui script, so I can store it in some module code other scripts might access to send mesages to this gui script. In component scripts I would do go.get_id("#")
. Is there a similar method for gui scripts?
I can work around this by sending a message to an external component which gets the value I need as the sender
argument, but it’s a bit contrived.
Furthermore, is there a way of knowing if you’re in a GUI, component or render script at runtime (as module code)?