For questions or support, email support@privy.io.
We use dotnet format together with an .editorconfig file to enforce
consistent C# style and catch simple linting issues. A few rules worth
highlighting:
dotnet_style_prefer_auto_properties = true– always prefer auto‑properties to manually backed fields.csharp_style_expression_bodied_methods = true– use expression bodies for short methods.* Naming rules enforcePascalCasefor enums, types, constants and public members, andIprefix for interfaces.
The .editorconfig in the repo contains additional options; see the
Microsoft code style documentation
for a complete list.
Set up the pre-commit hook (auto-formats staged files on every commit):
git config core.hooksPath .githooksFormat manually:
dotnet format Format.csprojCheck without modifying files:
dotnet format Format.csproj --verify-no-changesIf you are working with native platform plugins (e.g. iOS Objective-C), see docs/native-code.md for detailed guidance on bridging native and managed code.
-
Clone Repo
git clone https://github.com/privy-io/unity-sdk.git
-
Open Unity Hub
-
Add the Sample App Project.
- In Unity Hub, select the Add button to add a new project.
- Navigate to the
unity-sdk/SampleAppdirectory and select this project.
-
Select the Sample Scene.
- In the Unity Editor, locate the Project window.
- Navigate to the
Assets > Scenesfolder. - Double-click the
SampleScenefile to open it.
-
Run the Scene.
- Once the sample scene is open, press the Play button at the top of the Unity Editor to run the scene.
- This will launch the sample app within the Unity Editor, allowing you to test the SDK functionality.