Language
Edit

MinMaxScaleConstraint Class

Definition

Component for setting the min/max scale values for ObjectManipulator or BoundsControl components.

[UnityEngine.AddComponentMenu("MRTK/Spatial Manipulation/Min Max Scale Constraint")]
public class MinMaxScaleConstraint : MixedReality.Toolkit.SpatialManipulation.TransformConstraint
[<UnityEngine.AddComponentMenu("MRTK/Spatial Manipulation/Min Max Scale Constraint")>]
type MinMaxScaleConstraint = class
    inherit TransformConstraint
Public Class MinMaxScaleConstraint
Inherits TransformConstraint
Inheritance
UnityEngine.MonoBehaviour
MinMaxScaleConstraint
Attributes
UnityEngine.AddComponentMenuAttribute

Remarks

The constraint system might be reworked in the future. In such a case, these existing components will be deprecated.

Constructors

Name Description
MinMaxScaleConstraint()

Fields

Name Description
InitialWorldPose

The initial world pose before any manipulations.

(Inherited from TransformConstraint)
WorldPoseOnManipulationStart

The world pose of the object when the manipulation began.

(Inherited from TransformConstraint)

Properties

Name Description
ConstraintType

Get flags that describe the type of transformations this constraint applies to.

ExecutionPriority

Execution order priority of this constraint. Lower numbers will be executed before higher numbers.

(Inherited from TransformConstraint)
HandType

Whether this constraint applies to one hand manipulation, two hand manipulation or both

(Inherited from TransformConstraint)
MaximumScale

Maximum scale allowed

MinimumScale

Minimum scale allowed

ProximityType

Whether this constraint applies to near manipulation, far manipulation or both

(Inherited from TransformConstraint)
RelativeToInitialState

Min/max scaling relative to initial scale if true

Methods

Name Description
ApplyConstraint(MixedRealityTransform)

Clamps the transform scale to the scale limits set by MinimumScale and MaximumScale.

OnDisable()

A Unity event function that is called when the script component has been disabled.

(Inherited from TransformConstraint)
OnEnable()

A Unity event function that is called when the script component has been enabled.

(Inherited from TransformConstraint)
OnManipulationStarted(MixedRealityTransform)

Called when manipulation starts on the attached object.

(Inherited from TransformConstraint)
Setup(MixedRealityTransform)

Called once before any constraints are computed.

(Inherited from TransformConstraint)

Applies to