This is an unofficial Unity integration for mocap4face by Alter (Facemoji).
It is suggested to use the Unity Package Manager to add this repository to your project, with the following URL:
git+https://github.com/BennyKok/mocap4face-unity.git
In order for this to work, first install Git LFS and enable it in the Unity Package Manager.
Alternatively, clone this repository as a submodule in your project's Packages
directory:
git submodule add https://github.com/BennyKok/mocap4face-unity.git Packages/mocap4face-unity
This option is not recommended if you are working in a team or intend to redistribute the code,
since most of the Packages/
directory is meant to be excluded from version control.
- This package uses External Dependency Manager for Unity, please set it up first.
- Download the
mocap4face
Android AAR library from the Facemoji developer portal.- Minimum version is 0.2.0.
- See this Discord message for more details.
- After downloading, copy
mocap4face-x.x.x-SNAPSHOT.aar
into theAssets/Plugins/Android/Library
directory in your project.- If any directory does not exist, create it.
- If you encoutered an error about a duplicated Kotlin library, enable these options in the
Publishing
section of Player Settings. Then in the Unity menu bar, chooseAssets > External Dependency Manager > Android Resolver > Force Resolve
.
- Download the
mocap4face
iOS framework from the Facemoji developer portal. - After downloading, copy the contents of
Mocap4Face.xcframework/ios-arm64
into theAssets/Plugins/iOS/Library
directory in your project.- If any directory does not exist, create it.
Before running the demo scene on your device, put in the API key in the inspector.
Then you will see the blendshapes view as below.
Please chime in the Alter Discord for further discussion if you would like to help out with this Unity integration!
You can find the Discord link in the page here -> mocap4face GitHub Page.
- Original Unity wrapper with Android support by Benny Kok (@BennyKok).
- iOS port (including unsafe memory access) by Thomas Suarez (@tomthecarrot) from Teleportal (0xTELEPORTAL).