Skip to content

How arunityX Works

Philip Lamb edited this page May 16, 2023 · 2 revisions

artoolkitX for Unity consists of

  1. a set of Unity C# scripts which are placed in a Unity scene, and which perform live augmented reality tracking
  2. Unity Editor C# scripts which assist with AR app setup and deployment
  3. native Unity plugins, based around the artoolkitX native libraries for Windows, mac OS, iOS, Android, and Linux, and
  4. supporting tools for trackable handling and camera calibration.

The core computer vision portions of the toolkit are written in C and C++ and compiled into native code for each platform, as a library named "ARX". The Unity scripts communicate with the native code via C#'s "platform invoke" (P/invoke) system, which allows native code to be called from C#. The native abstractions (e.g. an ARTrackable which might represent a textured 2D surface, or a square fiducial marker) are re-represented by C# scripts which act as Unity game components.

artoolkitX for Unity functional schematic