> For the complete documentation index, see [llms.txt](https://assetstore.easymlkit.voxelbusters.com/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.easymlkit.voxelbusters.com/tutorials/input-sources/ar-foundation-camera-input-source.md).

# 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.easymlkit.voxelbusters.com/tutorials/input-sources/ar-foundation-camera-input-source.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
