# Sample Code

Listed here are the sample code from demo scenes in NRSDK package and code described throughout this documentation.

<table><thead><tr><th width="257.4611260163377">Documentation</th><th width="381.05859441672305">Relevant Unity Scene and Sample Code</th></tr></thead><tbody><tr><td></td><td><strong>HelloMR</strong><br><br><code>NRKernal.NRExamples.HelloMRController</code><br><code>NRKernal.NRExamples.DemoScenesMenu</code></td></tr><tr><td><a href="/pages/CgzAuPoKAV7pB8Jv5S1F">Controller Basics</a></td><td><strong>Input-ControllerInfo</strong><br><br><code>NRKernal.NRExamples.ControllerInfoDisplayUI</code></td></tr><tr><td><a href="/pages/pcs3KCP0Uqb70lY7snmA">Customize Controller UI</a></td><td><strong>Input-VirtualController</strong><br><br><code>NRKernal.NRExamples.CustomVirtualControlerUI</code></td></tr><tr><td><a href="/pages/WAbXomXzQS6266hzYyVK">Object Manipulation (Tutorial)</a></td><td><strong>Input-Interaction</strong><br><br><code>NRKernal.NRExamples.CubeInteractiveTest</code></td></tr><tr><td><a href="/pages/dBTg7eUpclFPF2fpCFwj">Hand Tracking</a></td><td><strong>HandTracking</strong><br><br><code>NRKernal.NRExamples.HandTrackingExample</code></td></tr><tr><td><a href="/pages/lWrwCrzD176iOzwmR9PX">Image Tracking</a></td><td><strong>ImageTracking</strong><br><br><code>NRKernal.NRExamples.TrackingImageExampleController</code></td></tr><tr><td><a href="/pages/plxhXhnr2flrID56QFt9">Plane Detection (Tutorial) </a></td><td>Project code can be downloaded <a href="/pages/KfNKcD89sEZdbvLhneA3">here</a></td></tr><tr><td><a href="/pages/DUvQF6O6LzZGruK9Kq19">Depth Mesh</a></td><td><strong>Meshing</strong><br><br><code>NRKernal.NRExamples.NRMeshingManager</code></td></tr><tr><td><a href="/pages/DIX44FTja9jCjSNIDemA">Spatial Anchor</a></td><td><strong>MappingExample</strong><br><br><code>NRKernal.NRExamples.LocalMapExample</code><br><code>NRKernal.Persistence.AnchorItem</code><br><code>NRKernal.Persistence.NRWorldAnchor</code><br><code>NRKernal.Persistence.NRWorldAnchorStore</code></td></tr><tr><td></td><td><strong>HelloMRSwitchConfig (Experimental)</strong><br><br><code>NRKernal.NRExamples.PlaneDetector</code></td></tr><tr><td></td><td><strong>RGBCamera</strong><br><br><code>NRKernal.NRExamples.CameraCaptureController</code></td></tr><tr><td><a href="/pages/yEZ5s4WhgIvmToJBWxRo">Access RGB Camera</a></td><td><strong>RGBCamera-Record</strong><br><br><code>NRKernal.NRExamples.VideoCapture2LocalExample</code></td></tr><tr><td></td><td><strong>RGBCamera-Capture</strong><br><br><code>NRKernal.NRExamples.PhotoCaptureExample</code></td></tr><tr><td><a href="/pages/3cq27tYjfstDk1tAdm2d">First Person View</a></td><td><strong>FirstPersonViewStreamingCast</strong> (Experimental)<br><br><code>NRKernal.Experimental.StreammingCast.FirstPersonStreammingCast</code> (Experimental)</td></tr><tr><td></td><td><strong>HelloMR-ChangeMode</strong> (Experimental)<br><br><code>NRKernal.NRExamples.ChangeModeController</code></td></tr><tr><td></td><td><strong>PupilDistanceAdjustment</strong> (Experimental)<br><br><code>NRKernal.Experimental.NRExamples.PupilDistanceAdjustment</code> (Experimental)</td></tr><tr><td></td><td><strong>RenderForDistance</strong> (Experimental)</td></tr><tr><td></td><td><strong>Overlay-VideoPlayer</strong> (Experimental)</td></tr><tr><td></td><td><strong>AudioStreamming</strong> (Experimental)<br><br><code>NRKernal.Experimental.NRExamples.AudioCaptureExample</code> (Experimental)</td></tr></tbody></table>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xreal.gitbook.io/nrsdk/nrsdk-fundamentals/sample-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
