Plugins for Unity that enable native OS authentication services, such as Windows Hello or macOS Touch ID.
Biometric Authentication currently supports:
- ✅ Windows 10 (Tested)/Windows 11 (Untested)
- ✅ macOS 11.5+
- Linux
- iOS
- Android
- Download the plugin for the target platform.
- Add the plugin to Unity and move it to the
Pluginsfolder.
/Assets/Plugins/macOS
/Assets/Plugins/Windows
- Download
ValidateBiometrics.csand add it to the Unity project. - Add the
usingto any script where it is needed and call the method. See below for example.
using OS6.Authentication;| Name | Type | Description |
|---|---|---|
Authenticate() |
bool |
Returns true or false based on the Auth window result |
using UnityEngine;
using OS6.Authentication;
public class ActionWithBiometrics : MonoBehaviour
{
private async void ExampleMethod()
{
if (await ValidateBiometrics.AuthenticateBiometrics())
{
Action();
}
}
}