Needle Engine Documentation
Getting Started
Tutorials
How-To Guides
Explanation
Reference
Help
Getting Started
Tutorials
How-To Guides
Explanation
Reference
Help

Everywhere Actions

UnityUnity • BlenderBlender

What are Everywhere Actions?

Needle's Everywhere Actions are a set of carefully chosen components that allow you to create interactive experiences without writing code.

Build experiences that work across all platforms:

Supported Platforms

PlatformSupportNotes
Desktop✅ Full supportWindows, macOS, Linux
Mobile✅ Full supportAndroid & iOS browsers
VR Headsets✅ Full supportQuest, Vive, Index, etc.
AR Devices✅ Full supportARCore, ARKit devices
AppleiOS WebXR✅ Full native ARVia Needle Go App Clip
QuickLookiOS QuickLook✅ SupportedApple Vision Pro, iPhone, iPad

Native WebXR on iOS Now Available! 🎉

Full WebXR support is now available on iOS through Needle Go App Clip. Experience complete AR and VR on iPhone and iPad without app installation—just open your WebXR scene in Safari or Chrome!

How do I use Everywhere Actions?

For iOS support add the USDZExporter component to your scene. It is good practice to add it to the same object as the WebXR component (but not mandatory)

To add an action to any object in your scene
select it and then click Add Component > Needle > Everywhere Actions > [Action].

List of Everywhere Actions

ActionDescriptionExample Use Cases
Play Animation on ClickPlays a selected animation state from an Animator. After playing, it can optionally transition to another animation.Product presentations, interactive tutorials, character movement
Change Material on ClickSwitch out one material for others. All objects with that material will be switched together.Product configurators, characters
Look AtMake an object look at the camera.UI elements, sprites, info graphics, billboard effects, clickable hotspots
Play Audio on ClickPlays a selected audio clip.Sound effects, Narration, Museum exhibits
Hide on StartHides an object at scene start for later reveal.
Set Active on ClickShow or hide objects.
Change Transform on ClickMove, rotate or scale an object. Allows for absolute or relative movement.Characters, products, UI animation (use animation for more complex movements)
Audio SourcePlays audio on start and keeps looping. Spatial or non-spatialBackground music, ambient sounds
WebXR Image TrackingTracks an image target and shows or hides objects.AR experiences, product presentations

Samples

Musical Instrument

Demonstrates spatial audio, animation, and interactions.

Simple Character Controllers

Demonstrates combining animations, look at, and movement.

Image Tracking

Demonstrates how to attach 3D content onto a custom image marker. Start the scene below in AR and point your phone's camera at the image marker on a screen, or print it out.

iOS: Full Native Support ✅

Image tracking works natively on iOS through Needle Go App Clip with ARKit support—no setup required!

Android: Browser Flag Required

On Android please turn on "WebXR Incubations" in the Chrome Flags. You can find those by pasting chrome://flags/#webxr-incubations into the Chrome browser address bar of your Android phone.

Read more about Image Tracking with Needle Engine

Image Marker

Interactive Building Blocks Overview

Create your own Everywhere Actions

Creating new Everywhere Actions involves writing code for your action in TypeScript, which will be used in the browser and for WebXR, and using our TriggerBuilder and ActionBuilder API to create a matching setup for Augmented Reality on iOS via QuickLook. When creating custom actions, keep in mind that QuickLook has a limited set of features available. You can still use any code you want for the browser and WebXR, but the behaviour for QuickLook may need to be an approximation built from the available triggers and actions.

Tips

Often constructing specific behaviours requires thinking outside the box and creatively applying the available low-level actions. An example would be a "Tap to Place" action – there is no raycasting or hit testing available in QuickLook, but you could cover the expected placement area with a number of invisible objects and use a "Tap" trigger to move the object to be placed to the position of the tapped invisible object.

Triggers and Actions for QuickLook are based on Apple's Preliminary Interactive USD Schemas

Code Example

Here's the implementation for HideOnStart as an example for how to create an Everywhere Action with implementations for both the browser and QuickLook:

import { Behaviour, UsdzBehaviour, BehaviorModel, TriggerBuilder, ActionBuilder, BehaviorExtension, USDObject, USDZExporterContext } from "@needle-tools/engine";

export class HideOnStart extends Behaviour implements UsdzBehaviour {

    start() {
        this.gameObject.visible = false;
    }

    createBehaviours(ext: BehaviorExtension, model: USDObject, _context: USDZExporterContext) {
        if (model.uuid === this.gameObject.uuid)
            ext.addBehavior(new BehaviorModel("HideOnStart_" + this.gameObject.name,
                TriggerBuilder.sceneStartTrigger(),
                ActionBuilder.fadeAction(model, 0, false)
            ));
    }

    beforeCreateDocument() {
        this.gameObject.visible = true;
    }

    afterCreateDocument() {
        this.gameObject.visible = false;
    }
}

Tips

Often, getting the right behaviour will involve composing higher-level actions from the available lower-level actions. For example, our "Change Material on Click" action is composed of a number of fadeActions and internally duplicates objects with different sets of materials each. By carefully constructing these actions, complex behaviours can be achieved.

Low level methods for building your own actions

Triggers
TriggerBuilder.sceneStartTrigger
TriggerBuilder.tapTrigger
Actions
ActionBuilder.fadeAction
ActionBuilder.startAnimationAction
ActionBuilder.waitAction
ActionBuilder.lookAtCameraAction
ActionBuilder.emphasize
ActionBuilder.transformAction
ActionBuilder.playAudioAction
Group Actions
ActionBuilder.sequence
ActionBuilder.parallel
GroupAction.addAction
GroupAction.makeParallel
GroupAction.makeSequence
GroupAction.makeLooping
GroupAction.makeRepeat

To see the implementation of our built-in Everywhere Actions, please take look at src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts.

References

  • Apple's Preliminary USD Behaviours

Further reading

AppleiOS WebXR Support

Want to use full WebXR features on iPhone and iPad? Check out our iOS WebXR with App Clip guide for complete AR and VR support without app installation.

  • Visit our AR Showcase Website that has many interactive AR examples with a focus on iOS AR & Quicklook
  • Needle Engine Everywhere Action Samples
  • Image Tracking with Needle Engine
Suggest changes
Last Updated: 1/27/26, 8:26 PM

On this page

Extras

Copy for AI (LLMs)