# AR Foundation Camera Input Source

{% hint style="warning" %}
To use ARFoundation supported input source, you need to add <mark style="color:purple;">**EASY\_ML\_KIT\_SUPPORT\_AR\_FOUNDATION**</mark> scripting define symbol in in player settings for each platform.
{% endhint %}

Use <mark style="color:purple;">**ARFoundationCameraInputSource**</mark>  if you want to process the input directly from ar camera feed.

```
using VoxelBusters.EasyMLKit;
private IInputSource CreateARCameraInputSource()
{
    IInputSource inputSource = new ARFoundationCameraInputSource(arSession, arCameraManager);
    return inputSource;
}
```

Pass ArSession and ArCameraManager instances for creating the <mark style="color:purple;">**ARFoundationCameraInputSource**</mark> instance.

{% hint style="info" %}
You need to have <mark style="color:purple;">AR Foundation</mark> and <mark style="color:purple;">ARCore XR Plugin</mark> packages installed in your project from package manager.
{% endhint %}
