Utilities
The utils API contains a few useful functions.
utils.showInspector
Show the inspector. This is useful for debugging the 3d Scene.
utils.postMessage
Send a message to the parent window. This messsage will be send from the iframe to the parent window. If you are consuming the rooomAssistant as an iframe you dont need to use this function. Its only useful if you are controlling the Digital Assistant with a script.
utils.colorToRGBA
Convert a color to RGBA. As input you can use a hex color, a color name or a rgb(a) color.
utils.fetchFile
Fetch a file from a server.
utils.log
Log a message to the console. This is useful for debugging.
utils.getURLParameter
TODO: Use this function to get a parameter from the URL. For example if you want to get the language from the URL.