Workflow_ARSession example explained
Workflow_ARSession is a lightweight AR session management example designed to demonstrate how to build a complete AR application flow with minimal dependencies. This example supports both AR Foundation-compatible mode and simple mode, allowing you to flexibly choose based on project requirements.
How to use
Scene selection (choose one)
In the Unity editor, the Workflow_ARSession scene contains two mutually exclusive configuration root objects. Please enable only one group (ensure the other group is inactive):
| Configuration name | Applicable scenario | Dependency |
|---|---|---|
ARFoundationCompatibleSceneSetup |
Projects already using or planning to integrate AR Foundation | Requires completion of AR Foundation configuration |
SimpleSceneSetup |
Does not rely on AR Foundation, directly uses EasyAR native capabilities | No additional dependencies, suitable for lightweight AR applications |
Build and run
- Add
Workflow_ARSessionto the menu barFile>Build SettingsorBuild Profiles>Scene List. - Confirm the build options in
Project Settings>Playerbased on the target platform (e.g., Android or iOS). - Build to a real device and run.
After the app launches, it will automatically initialize the camera and wait for target recognition.
Identify targets and acquisition methods
This example demonstrates image tracking by default, but its architecture can be easily extended to other modes such as object tracking and cloud recognition.
Default target: namecard.jpg
- Target type: 2D image (recommended print size ≥ 90mm × 54mm)
- Download link: 🔗 namecard

How to replace the target?
- Put your image (JPG/PNG) into
Assets/Samples/EasyAR Sense Unity Plugin/[version]/__All Samples__/Workflow/Workflow_ARSession/Targets. - Select the
ImageTarget-namecardcomponent in the scene, and change theTextureto your image in the Inspector'sImage Target Controller (Script). - Modify the
NameandScale.Scaleis the physical size of your target (in meters), based on the long side of the image.

- Save and rebuild.
Expected effect
When the camera is aimed at the target image, the system will:
- detect and track the image in real-time;
- overlay a 3D panda on the image plane;
The position, orientation, and scale of the panda are strictly bound to the pose of the image target. Even if the image moves, is partially occluded, or changes in lighting, it can still be tracked stably.
Extension suggestions
- Add object tracking: Replace
ImageTrackerwithObjectTracker, load.objmodel files; - Enable cloud recognition: Use
CloudRecognizerinstead of local target lists; - Multi-target support: Extend from a single image target to multiple images, the system will automatically handle concurrent tracking.
Tip
For more feature components, please visit AR feature components.
With Workflow_ARSession, you can quickly master the core workflow of EasyAR and build production-level AR applications on this foundation.