Plugin Usage in HTML
If you are using use the Sense of Space geometry streaming in PlayCanvas without the Playcanvas editor, directly in an HTLM page, you will need to include the following script tag in your html:
The script in PlayCanvas should be added to your HTML file after initializing of pc.Application, but before you attach the script component to the Entity and run Application.start()
After then you need to define a new Entity, add it the root and define the parameters (described in Supported Parameters):
If you want to have several streamable models in one project, you need to specify all of them as it is done above and add all Streamable Models as a child to Stream Controller:
You can list only necessary parameters, or skip this part altogether (and use the default parameters listed in Supported Parameters).
Note! However, you need to set at least the camera and the path to the model!
Once your scene is played, your model will start streaming right away.