From a20ade62c7b39b478f6658a5e1333f7fadba2d0a Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 23 Aug 2024 23:49:57 -0700 Subject: [PATCH] Add build instructions to README for JSExample --- Samples~/JSExample/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Samples~/JSExample/README.md b/Samples~/JSExample/README.md index d88d1ec..5e1b08d 100644 --- a/Samples~/JSExample/README.md +++ b/Samples~/JSExample/README.md @@ -1,5 +1,12 @@ # JSExample -Make sure to select the correct WebGLTemplate in the Build Settings when running this example. +## Build -If the WebGLTemplate template isn't detected, move the WebGLTemplates folder to the assets root directory +1. Create a new Unity project with the LiveKit Unity SDK for WebGL (https://github.com/livekit/client-sdk-unity-web). +2. Copy the contents of this folder into the root of the `Assets` directory. +3. Build the javascript: +`(cd Assets/JSPackage\~/ && npm run build)` +4. In ProjectSettings > Player > WebGL > Resolution and Presentation, select the WebGL Template named "LiveKitDemoJS." If the WebGLTemplate template isn't detected, move the WebGLTemplates folder to the assets root directory. +5. In Build Settings, select the WebGL platform. +6. In Build Settings, add the JSExample scene to the "Scenes in Build" list. +7. Build the project! \ No newline at end of file