API reference
API reference
Select your platform
No SDKs available
No versions available

OneGrabScaleTransformer Class

Extends MonoBehaviour
It is not expected that typical users of the SlateWithManipulators prefab should need to either interact with or understand this script.
This is a specialized transformer for scaling based on a single grab, canonically from an affordance such as the corner affordances on the SlateWithManipulators prefab.

Properties

Constraints : OneGrabScaleConstraints
[Get][Set]
Signature
OneGrabScaleConstraints Oculus.Interaction.Samples.OneGrabScaleTransformer.Constraints

Methods

BeginTransform ()
Invoked by the owning IGrabbable to instruct the ITransformer to start its procedural animation.
Typically, this is invoked in response to the start of a selecting grab interaction.
Signature
void Oculus.Interaction.Samples.OneGrabScaleTransformer.BeginTransform()
Returns
void
EndTransform ()
Invoked by the owning IGrabbable to instruct the ITransformer to end its procedural animation.
Typically, this is invoked in response to the end of a selecting grab interaction.
Signature
void Oculus.Interaction.Samples.OneGrabScaleTransformer.EndTransform()
Returns
void
Initialize ( grabbable )
Invoked by the owning IGrabbable as part of its own initialization, passing itself as grabbable so that the ITransformer can do any required initial setup.
Signature
void Oculus.Interaction.Samples.OneGrabScaleTransformer.Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable  The owning IGrabbable for this instance.
Returns
void
UpdateTransform ()
Invoked by the owning IGrabbable to instruct the ITransformer to advance to the next frame of its procedural animation.
Typically, this is invoked in response to the continuation of a selecting grab interaction.
Signature
void Oculus.Interaction.Samples.OneGrabScaleTransformer.UpdateTransform()
Returns
void

Inner Class

OneGrabScaleConstraints Class

Fields

ConstrainXYAspectRatio : bool
Signature
bool Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.ConstrainXYAspectRatio
IgnoreFixedAxes : bool
Signature
bool Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.IgnoreFixedAxes
MaxX : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.MaxX
MaxY : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.MaxY
MaxZ : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.MaxZ
MinX : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.MinX
MinY : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.MinY
MinZ : FloatConstraint
Signature
FloatConstraint Oculus.Interaction.Samples.OneGrabScaleTransformer.OneGrabScaleConstraints.MinZ