Input/Output

This module has its own submodules, which you’ll find explained on this page.

In the InputOutput Module, you’ll drag these submodules into a list of pairs. You can mix and match inputs and outputs as long as they share the same input type.


Inputs

Distance

Input Type: Trigger

Trigger an input when an object exceeds or falls lower than a given distance.

Parameters

Object 1
One of the two objects
Object 2
One of the two objects
Condition
Whether it will trigger when distance is greater than or less than given value
Distance
Distance at which to trigger the input
Distance Type

How distance is measured

  • Planar - Y position (height) is normalized
  • Relative - Raw distance
Trigger Type
Whether it will send input once (Trigger) or every frame the condition is met (Continuous)

On Experience Placed

Input Type: Trigger

Trigger an input when the user places the experience.

On Tracking Found

Input Type: Trigger

Trigger an input when the AR tracking is found.

On Tracking Lost

Input Type: Trigger

Trigger an input when the AR tracking is lost.

Orientation

Input Type: Trigger

Trigger an input when the user changes device orientation

Note

Only triggers if experience is set to Auto orientation

Parameters

Orientation Trigger
Which orientation will trigger this input

Touch Object

Input Type: Trigger

Trigger an input when the user taps an object.

Note

Be sure to add a trigger collider to the object you want to touch as input.

Parameters

Object to touch
Object that will trigger the input
Type
Whether the input is triggered on Tap, Hold, or Release

Touch Screen

Input Type: Trigger

Trigger an input when the user taps the screen.

Parameters

Type
Whether the input is triggered on Tap, Hold, or Release

Trigger Collider

Input Type: Trigger

Trigger an input when a collider touches a trigger collider.

Parameters

Event Type
Whether the input is triggered on Enter, Stay, or Leave
Triggered Object
Object being triggered
Triggering Object
Object doing the triggering

UI Reference Button

Input Type: Trigger

Trigger an input when the user taps a button you’ve set up using the UI Module.

Parameters

Target Button (Target Syntax)

Utilizing the [UI] Target Syntax shortcut, identify the button you want to use as input

Examples

[UI]/DirectChildButton would target a button directly under your canvas.
[UI]/Parent/ButtonAsChild would target a button that exists under a parent object.

Video Timestamp

Input Type: Trigger

Trigger an input when a chosen video reaches a certain timestamp.

Parameters

Hour
Hour component of the timestamp
Minute
Minute component of the timestamp
Second
Second component of the timestamp
Millisecond
Millisecond component of the timestamp
Video Object (Target Syntax)
Video object being observed

Outputs

Animator Int

Input Type: Trigger

Change an Int in a Unity Animator

Parameters

Animator Object Name (Target Syntax)
Object with the Animator
Animator Int Name
Name of the Int being changed
Target Int Value
Value to change the Int to

Animator Trigger

Input Type: Trigger

Fire a trigger event in a Unity Animator

Parameters

Animator Object Name (Target Syntax)
Object with the Animator
Animator Trigger Name
Name of the trigger being fired

Audio Source

Input Type: Trigger

Start and stop an Audio Source

Parameters

Audio Source Name (Target Syntax)
Object with the Audio Source
Audio Output

How it behaves when triggered

  • Toggle - Plays if stopped, stops if currently playing.
  • Play - Plays audio
  • Stop - Stops audio

Open URL

Input Type: Trigger

Opens a URL

Parameters

URL
URL to open

Parent Object

Input Type: Trigger

Parents one object to another

Parameters

Child Object
Object being parented
Parent Object
Object Child Object will be parented to
Normalize Transform
Determines whether the child’s local position and rotation will be zeroed out to parent

Particle System

Input Type: Trigger

Start and stop particle systems

Parameters

Target (Target Syntax)
Object with the Particle System
Particle System Event

How it behaves when triggered

  • Toggle - Plays if stopped, stops if currently playing.
  • Play - Plays Particle System
  • Stop - Stops Particle System

Toggle Enabled

Input Type: Trigger

Toggle an object on and off

Parameters

Toggled Object (Target Syntax)
Object being turned on/off

Video Pause

Input Type: Trigger

Pause a video playing with the Video Module

Parameters

Video Object (Target Syntax)
Object with Video

Video Play

Input Type: Trigger

Play a video playing with the Video Module

Parameters

Video Object (Target Syntax)
Object with Video