FREE TRIAL

|

☀
☾
class

Interaction

Inherits from System.Object

The static access point to provide input events and leverage the Nova input system.

Constants

AllLayers

A layer mask to select all GameObject layers, equivalent to Physics.AllLayers.

Static Methods

Cancel (2 overloads)
  1. Cancel the most recent/current gesture triggered by the input control mapped to update.ControlID.
  2. Cancel the recent/current gesture triggered by the input control mapped to controlID.
Point (2 overloads)
  1. Performs a raycast with the provided Ray and routes the update update to the collided UIBlock or the UIBlock currently capturing the active interaction.
  2. Performs a sphere collision test with the provided Sphere, creates an Interaction.Update from the results, and routes the Interaction.Update to the collided UIBlock or the UIBlock currently capturing the active interaction.
Raycast

Performs a raycast against all active UIBlocks in the scene and retrieves a UIBlockHit for the top-most-rendered UIBlock colliding with the provided ray.

RaycastAll

Performs a raycast against all active UIBlocks in the scene and populates the provided list with UIBlockHits for all UIBlocks intersecting with the provided ray.

Scroll

Performs a raycast with the provided Ray and routes the scroll update to the collided UIBlock.

SphereCollide

Performs a sphere collision test against all active UIBlocks in the scene and retrieves a UIBlockHit for the top-most-rendered UIBlock colliding with the provided sphere.

SphereCollideAll

Performs a sphere collision against all active UIBlocks in the scene and populates the provided list with UIBlockHits for all UIBlocks colliding with the provided sphere.

TryGetActiveReceiver

Retrieves the latest valid UIBlockHit to receive an interaction event from the provided controlID.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC