Clone the project into your Assets
directory.
Create the WebGLTemplates
directory (in Assets
) and move or copy the IntifaceTemplate
directory into that directory.
In the Project Settings/Player
you can now select IntifaceTemplate
as your WebGL Template.
Add a GameObject named ToyConntector
to your first scene and add the ToyConntector
or ToyConntectorSingleton
script.
Use the methods of those scripts to control toys.
The itch.io script can be edited to work for other urls (e.g. localhost)
Start Server, connect your device and press the Connect Intiface button under the game.
Install the Webpage Monitor. Load the itch.io script on XToys connect your device and start it. Press the XToys Redirect button and make sure the Webpage Monitor is active on the page.