Integrations Guides
PlayCanvas

Plugin Usage in Editor

3min

If you are not using chrome, or for some reason cannot install the chrome plugin, you can also add the needed scripts manually to your scene in the editor.

  1. Download the PlayCanvas script plugin from the Plugins & Platforms section and upload it inside your PlayCanvas project.
Document image


2. Create a new Entity and attach the script to this entity:

Document image




3.  Add a Script Component to the new Entity and choose sosStreamController:

Document image

Document image


4. Here you need to define Camera and Quality parameters:

Document image


5. After that you need to add a child Entity to the controller. Press with the right mouse button on the StreamController entity and add a new Entity.

Document image


6. In the same way as before, add a Script Component to this new Entity - now it should be sosStreamableModel script

Document image


7. Now you can set the parameters for the Streamable Model. The parameters described in Supported Parameters.

Document image


8. You can also set if the model uses transparency (useAlpha), and other model specific parameters.

9. You can now paste the path to your Streamable Model (the URL from where the model was converted) and once you play your scene, the model will start streaming right away.