29 lines
979 B
Markdown
29 lines
979 B
Markdown
# Mock And Testing
|
|
|
|
中文说明见 [SDK_Mock_And_Testing.zh-CN.md](SDK_Mock_And_Testing.zh-CN.md).
|
|
|
|
The public DLL-only package includes runtime mock support inside `Aisu.SIM1.Face.Runtime.dll`, but it does not include EditMode test source files.
|
|
|
|
## Editor Mock
|
|
|
|
For Editor integration without real hardware, enable mock mode in `FaceSdkSettings`:
|
|
|
|
```text
|
|
Use Mock In Editor = true
|
|
```
|
|
|
|
When this option is enabled, the SDK uses the built-in mock transport in the Unity Editor instead of opening a real serial port.
|
|
|
|
## Hardware Validation
|
|
|
|
For real SI-M1 hardware validation:
|
|
|
|
1. Set `Use Mock In Editor = false`.
|
|
2. Configure `Editor Port Name`, `Editor Baud Rate`, and `Editor Read Buffer Size`.
|
|
3. Create a `FaceModuleManager` in the scene.
|
|
4. Call `Open()`, then wait for `WaitReadyAsync()` or handle `OnReady`.
|
|
|
|
## Automated Tests
|
|
|
|
Internal EditMode tests are maintained in the private development SDK repository and are not distributed in this DLL-only public package.
|