Apologies
Any idea why this doesn't work? It opens the URL when i run the scene
Regards Martyn
You aren't specifying the name of the function to call.
At the moment, the function name is "Start", which is a Unity standard function that will be run automatically when the scene begins. Rename:
void Start ()
to:
public void OpenLink ()
Then, set your Hotspot's "Message to send" field to "OpenLink" (no quotes).
Works like a charm.
Thank you Sir
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You aren't specifying the name of the function to call.
At the moment, the function name is "Start", which is a Unity standard function that will be run automatically when the scene begins. Rename:
to:
Then, set your Hotspot's "Message to send" field to "OpenLink" (no quotes).
Works like a charm.
Thank you Sir