Simple Face filter demo with Unity and echo3D.
Don't have an API key? Make sure to register for FREE at echo3D.
To install AR Foundation through the Unity Package Manager, follow the instructions in the Unity documentation here.
Open the AR Foundation sample scene located in:
Assets > AR Foundation > Scenes > SimpleAR > SimpleAR
In the hierarchy click on the AR Session Origin
game object.
In the inspector view, look for the Place on Plane
script and set the Placed Prefab
to the echo3D prefab in the Assets > echo3D
folder.
In the hierarchy, right click and choosr XR-AR Default Face
In the inspector view, click Add component
and search for AR Face Manager
and CustomerBehaviour
. Then addAR Default Face
which we created previously to the Face prefab
.
Edit the echo3D prefab and set your API key through in the Inspector view.
Overwrite the existing echo3D/CustomBehaviour.cs script with the new CustomBehaviour.cs file
Simply press the Play button in Unity. You can also build it in your phone.
Refer to our documentation to learn more about how to use Unity and echo3D.
Feel free to reach out at [email protected] or join our support channel on Slack.