ReadonlyapiGeneric object accessible by other instances of ScriptComponent. Use this object to store references to properties and methods that need to be accessible from other ScriptComponents.
If disabled, the Component will stop enacting its behavior.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
The largest this object can scale up to, relative to its original scale. A value of 2 means it cannot scale larger than twice its original size.
Callback for when any manipulation ends
Callback for when any manipulation begins
Callback for when any manipulation updates
Callback for when rotation has ended
Callback for when rotation begins
Callback for when rotation updates each frame
Callback for when scale has ended
Callback for when scale has reached the minimum or maximum limit
Callback for when scale begins
Callback for when scale updates each frame
Callback for when translation has ended
Callback for when translation begins
Callback for when translation updates each frame
ReadonlysceneThe SceneObject this component is on.
Controls the visibility of rotation options in the Inspector.
ReadonlyuniqueThe maximum multiplier applied to Z-axis movement when using stretch mode. This value is used when objects are far away from the user. Higher values allow faster positioning of distant objects with minimal hand movement.
The minimum multiplier applied to Z-axis movement when using stretch mode. This value is used when objects are close to the user. Higher values result in more responsive depth movement for nearby objects.
Returns if translation along world X-axis is enabled.
Set if translation along world X-axis is enabled.
Returns if translation along world Y-axis is enabled.
Set if translation along world Y-axis is enabled.
Returns if translation along world Z-axis is enabled.
Set if translation along world Z-axis is enabled.
Get if rotation occurs about all axes or a single world axis (x,y,z) when using to two hands..
Set if rotation occurs about all axes or a single world axis (x,y,z) when using to two hands.
Returns true if any of rotation x, y, or z is enabled
Returns true if any of scale x, y, or z is enabled
Returns true translation is enabled
Adds a new SceneEvent, triggered by eventType events, to the ScriptComponent.
Destroys the component.
Gets the transform of the root of the manipulated object(s).
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
StaticgetReturns the name of this object's type.
Returns true if the object is currently being actively manipulated (i.e., in the Active state).
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Removes a previously added SceneEvent from the ScriptComponent.
Resets the interactable's position
Resets the interactable's rotation
Resets the interactable's scale
Resets the interactable's transform
Toggle for allowing an object to rotate
Toggle for allowing an object to scale
Toggle for allowing an object to translate
Sets the transform of the passed SceneObject as the root of the manipulated object(s).
Set a new Interactable component to the InteractableManipulation. This will cleanup the existing callbacks and setup new ones for the new Interactable. Be sure to call this if there is no Interactable component on the SceneObject.
The new Interactable component to set.
Updates the starting transform values mid-manipuation if some other script has displaced, rotated, or scaled the object during the interaction.
This class provides manipulation capabilities for interactable objects, including translation, rotation, and scaling. It allows configuration of the manipulation root, scale limits, and rotation axes.