# NativeModule

#### Static Public Field

| 名称       | 功能                 |
| -------- | ------------------ |
| Instance | 获取 NativeModule 实例 |

#### Member Function Documentation

<table><thead><tr><th width="376">GetGlassesQualternion()</th><th></th></tr></thead><tbody><tr><td>Quaternion GetGlassesQualternion()</td><td></td></tr><tr><td>获取当前眼镜的 3dof 四元数信息<br>Returns<br>眼镜当前姿态的四元数值<br></td><td></td></tr></tbody></table>

| ResetGlassQuat()                          |   |
| ----------------------------------------- | - |
| Quaternion ResetGlassQuat()               |   |
| <p>重置眼镜视角到当前<br>Returns<br>重置的偏移量<br></p> |   |

| ResetMobileQuat()                            |   |
| -------------------------------------------- | - |
| Quaternion ResetMobileQuat()                 |   |
| <p>重置手机射线旋转角到当前<br>Returns<br>重置的偏移量<br></p> |   |

| ActiveFovControlView(bool active)      | active - 是否激活 |
| -------------------------------------- | ------------- |
| void ActiveFovControlView(bool active) |               |
| <p>显示隐藏主屏上控制相机fov界面UI<br></p>          |               |

| ChangeFov(int scaleValue)                                                                                                                                                                |   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| ChangeFov(int scaleValue)                                                                                                                                                                |   |
| 调整fov.0为当前数值. 负数扩大fov,正数缩小fov                                                                                                                                                            |   |
| 调用此接口时,需要在update中写入如下代码                                                                                                                                                                  |   |
| <p>if (Google.XR.Cardboard.Api.HasNewDeviceParams())<br>   {<br>       Google.XR.Cardboard.Api.ReloadDeviceParams();<br>   }<br><br>   Google.XR.Cardboard.Api.UpdateScreenParams();</p> |   |

| GetInterpupilDistance()                      |   |
| -------------------------------------------- | - |
| float GetInterpupilDistance()                |   |
| <p>获取瞳距<br>Returns<br>返回瞳距数值在60-70之间<br></p> |   |

| SetLuminanceMode                                         |   |
| -------------------------------------------------------- | - |
| static void SetLuminanceMode(int mode)                   |   |
| <p>设置屏幕亮度<br>Params<br>mode:传入对应数字，从最暗到最亮依次是：1，2，0，3</p> |   |

<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://rayneo.gitbook.io/rayneo-devdoc/air-xi-lie/unity-kai-fa/api/nativemodule.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.
