OvrTransform

Subclass of Ovr.OvrNode

Description

This Node is used to manage the most common interactions with the Unity Transform Component.

It requires a Transform to be set up, see Unity Manual for more info.

Based on the action the Transform is required to perform, this component changes its behavior and requirements.

Action Types

The OVER SDK provides several ways to interact with a Unity Transform Component. A list can be found in OvrTransformActionType.

Setters

A collection of actions available for OvrTransform allows the user to set common Transform attributes, such as Position, Rotation (both in Local and World space), and local Scale.

Note: the following attributes are added to the existing ones from the super class OvrNode

NameTypeDescription

Target

Unity Transform Component

ActionType

Action type

TargetPosition

[Position only] Target Position to set

TargetRotation

OvrQuaternion

[Rotation only] Target Rotation to set

TargetScale

[Scaleonly] Target Local Scale to set

Getters

Another collection of actions available for OvrTransform allows the user to Get the value of common Transform attributes, such as Position, Rotation (both in Local and World space), and local Scale.

Note: the following attributes are added to the existing ones from the super class OvrNode

NameTypeDescription

Target

Unity Transform Component

ActionType

Action type

TargetPosition

[Position only] Target Position to overwrite

TargetRotation

[Rotation only] Target Rotation to overwrite

TargetScale

[Scaleonly] Target Local Scale to overwrite

Direction

A collection of actions available for OvrTransform allows the user to Get Transform's Direction vectors, such as Forward, Up, and Right (in Local and World space) vectors.

Note: the following attributes are added to the existing ones from the super class OvrNode

NameTypeDescription

Target

Unity Transform Component

ActionType

Action type

TargetDir

[Position only] Target Direction to save the value

Unity Action

Execute the assigned UnityAction. Use this Type to directly access the functions made available by Unity in the specific component.

Note: the following attributes are added to the existing ones from the super class OvrNode

NameTypeDescription

Target

Unity Transform Component

ActionType

Action type [UnityAction]

UnityAction

UnityAction

UnityAction to be invoked