API reference

OneGrabScaleTransformer Class

Extends MonoBehaviour
Implements ITransformer
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 Constraints

Methods

BeginTransform ()
Signature
void BeginTransform()
Returns
void
EndTransform ()
Signature
void EndTransform()
Returns
void
Initialize ( grabbable )
Signature
void Initialize(IGrabbable grabbable)
Parameters
grabbable: IGrabbable
Returns
void
UpdateTransform ()
Signature
void UpdateTransform()
Returns
void

Inner Class

OneGrabScaleConstraints Class

Fields

ConstrainXYAspectRatio : bool
Signature
bool ConstrainXYAspectRatio
IgnoreFixedAxes : bool
Signature
bool IgnoreFixedAxes
Signature
FloatConstraint MaxX
Signature
FloatConstraint MaxY
Signature
FloatConstraint MaxZ
Signature
FloatConstraint MinX
Signature
FloatConstraint MinY
Signature
FloatConstraint MinZ