Visual Scripting Node Reference
This package includes a set of custom visual scripting nodes designed to help you use AR Foundation in visual scripting projects.
AR Foundation custom nodes shown in the fuzzy finder
Get trackables
A trackable is a special component that represents anything that can be detected and tracked in the real world. Planes, point clouds, anchors, environment probes, faces, body, images, and 3D objects are all examples of objects with corresponding trackable components. You can get all trackables of each type using the nodes below.
These nodes appear in the fuzzy finder in the AR Foundation category:
On trackables changed
A trackable's life cycle has three phases: added, updated, and removed. Each frame, managers trigger an event that includes all trackables that have been added, updated, or removed in the current frame. You can subscribe to these events using the nodes below.
These nodes appear in the fuzzy finder in the Events > AR Foundation category:
Note
If you wish to receive update events from a single AR Face component, ignoring the added, updated, and removed events from other faces, you can use the On Face Updated node.
Other events
These nodes appear in the fuzzy finder in the Events > AR Foundation category:
Node | Description |
---|---|
On Session State Changed | Triggers whenever the AR session state changes. |
On Camera Frame Received | Triggers every frame when Unity receives a new image from the device camera. |