You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improved build script to build debug as well
* Debug for rust
* Adds Meet sample to SDK package
* Adding workspace for vscode
* Adds ios builds for build script, enables verbose logging in Unity for ios
* Meet is now sample in package
* Added developer setup in README
Copy file name to clipboardExpand all lines: README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,40 @@ You can use the package manager to import local `client-sdk-unity` into your Uni
48
48
49
49
Or you can import the git url `https://github.com/livekit/client-sdk-unity.git` from the package manager.
50
50
51
+
## Local development
52
+
51
53
### Building Livekit plugins locally
52
54
53
55
For local development, initialize the git submodule containing the Rust code for the LiveKit plugin libraries.
54
56
55
-
There is a [helper script](https://github.com/livekit/client-sdk-unity/blob/main/BuildScripts~/build_ffi_locally.sh) to build the libraries locally and exchange the downloaded libraries with the build artifacts.
57
+
There is a [helper script](https://github.com/livekit/client-sdk-unity/blob/main/BuildScripts~/build_ffi_locally.sh) to build the libraries locally and exchange the downloaded libraries with the local build artifacts in the correct `Runtime/Plugins` folder.
56
58
57
59
Currently, the build script supports the following arguments:
Look at the Unity-SDK.code-workspace setup for VSCode. This will use the Meet Sample as the Unity project and the Unity SDK package as two roots in a multi-root workspace and the Meet.sln as the `dotnet.defaultSolution`, enabling Rust and C# IDE support.
74
+
75
+
### Debugging
76
+
77
+
For C# debugging, there is a simple attach launch option called `C# Unity`, for example in the `Meet/.vscode/launch.json`.
78
+
79
+
For Rust / C++ debugging on MacOS, you need to install the [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) extension. The debug attach is defined in `.vscode/launch.json`.
80
+
81
+
1. Build the livekit-ffi lib locally in debug mode with `./BuildScripts~/build_ffi_locally.sh macos debug`
82
+
2. Start the Unity Editor
83
+
3. Attach to the Unity Editor process (either auto or manual process picker)
0 commit comments