2min

Plugin Usage in HTML

To use the Sense of Space geometry streaming in PlayCanvas you will need to include the following script tag in your html in addition to your project:

JS
|



After then you need to define a new Entity, add it the root and define the parameters (described in Supported Parameters):

JS
|

You can list only necessary parameters, or miss this part at all (then the streamer will use the default parameters - that are listed in example). But you need at least to set the camera and the path to the model.

Once your scene is played, your model will start streaming right away!



Updated 31 May 2022
Did this page help you?
Yes
No