AR-Driven Unity Application Fundamentals
The EasyAR Sense Unity plugin package provides the foundational functionalities for developing AR applications in Unity. This document introduces the basic knowledge and components you need to understand when developing AR applications in Unity.
Before you begin
- Understand AR-driven 3D rendering.
Unity AR application development fundamentals
First, you need to understand which Unity versions and platforms are compatible with EasyAR through the following content:
In Unity, the typical workflow of an AR application is similar to general AR applications, but it uses the AR Session component to manage camera data acquisition, tracker operation, and virtual content rendering.
flowchart TD
subgraph AR
CameraDevice[Camera Device]
Tracker[Tracker]
Renderer[Renderer]
CameraDevice -->|Image Frame| Tracker
Tracker -->|Image Frame + Tracked Pose| Renderer
end
subgraph unity["Unity AR"]
B[Session]
C([Camera])
O([Origin])
T([Target])
B -- transform --> C
B -- transform --> O
B -- transform --> T
classDef Unity fill:#6e6ce6,stroke:#333,color:#fff
class B Unity
class C Unity
class O Unity
class T Unity
end
CameraDevice -..- B
Tracker -..- B
Renderer -..- C
Renderer -..- O
Renderer -..- T
You will start with these fundamental components and gradually understand the basics of AR applications in Unity:
Then, you need to understand the center mode, which is a key concept for understanding how EasyAR controls the behavior of Unity components:
If you have experience with Unity XR frameworks (such as AR Foundation), you might want to learn how to use these features when developing EasyAR applications:
If you have already completed AR development in the Unity Editor, you might want to understand how to configure the Unity project to run on target devices before packaging and releasing:
Combining the above fundamentals, you can refer to the following workflow example to practice what you have learned:
Next steps
After mastering the fundamentals of Unity AR application development, you still need to learn more about the functionalities and components required for AR development:
- Learn about frame source
- Learn about Unity AR simulation and make good use of it during development
- Learn about diagnostic features and make good use of them during development
If you need to run EasyAR applications on head-mounted devices, you will also need to:
- Learn about XR headsets usage