import_nrsdk
Imports the NRSDK into Unity projects from a local package file or download URL, then configures player settings and streaming assets.
Instructions
Imports the NRSDK (XREAL SDK) into the Unity project. Can import from a local unitypackage file or download a specific version. Configures initial SDK settings after import.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "import_nrsdk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to download NRSDK from (required if source is "url") | |
| path | No | Local file path to NRSDK .unitypackage file (required if source is "local") | |
| source | Yes | Import source: "local" for a unitypackage file path, "url" for download URL | |
| version | No | SDK version being imported (for reference) | |
| importExamples | No | Import example scenes and scripts | |
| importStreamingAssets | No | Import streaming assets required for device operation | |
| configurePlayerSettings | No | Automatically configure Player Settings for NRSDK |