968 B
968 B
Mock And Testing
中文说明见 SDK_Mock_And_Testing.zh-CN.md.
Editor Mock
For Editor integration without real hardware, enable mock mode in FaceSdkSettings:
Use Mock In Editor = true
When this option is enabled, the SDK uses MockFaceModuleTransport in the Unity Editor instead of opening a real serial port.
Mock mode is useful for:
- UI flow testing
- Command callback testing
- User-list display testing
- Basic enrollment and verification workflow testing
Hardware Validation
For real SI-M1 hardware validation:
- Set
Use Mock In Editor = false. - Configure
Editor Port Name,Editor Baud Rate, andEditor Read Buffer Size. - Open the scene that contains one
FaceModuleManager. - Call
Open(). - Wait for
WaitReadyAsync()or handleOnReady.
Logs
Enable RawLogEnabled to receive raw TX/RX logs through OnRawLog.
Enable DebugLogEnabled to print SDK-level debug logs.