Integrations Guides
PlayCanvas
Plugin Usage in HTML
2min
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 \<script·src="https //assets senseofspace io/streamablemodel/0 0 11/sosstreamablemodelplaycanvasscript js">\</script> 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 ) let streamcontroller = new pc entity(); streamcontroller addcomponent("script"); streamcontroller script create("sosstreamcontroller" , { 	attributes { 	 quality 1 0, 	 camera camera 	} }); 	 let element1 = new pc entity(); element1 addcomponent("script"); element1 script create("sosstreamablemodel" , { 	attributes { 	 path " /model sxrweb", 	 usealpha true, 	 usemetalroughness true, 	 castshadows true, castlightmapshadows true, receiveshadows true 	} }); element1 setposition(0, 0, 0); streamcontroller addchild(element1); app root addchild(streamcontroller); 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 let element2 = new pc entity(); element2 addcomponent("script"); element2 script create("sosstreamablemodel" , { 	attributes { 	 path " /model sxrweb", 	 usealpha true, 	 usemetalroughness true, 	 castshadows true, castlightmapshadows true, receiveshadows true 	} }); element2 setposition(10, 0, 0); streamcontroller addchild(element2); you can list only necessary parameters, or skip this part altogether (and use the default parameters listed in supported parameters https //docs senseofspace io/cc14 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