Redigera

Dela via


MinMaxScaleConstraint Class

Definition

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

public ref class MinMaxScaleConstraint : Microsoft::MixedReality::Toolkit::UI::TransformConstraint
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/MinMaxScaleConstraint")]
public class MinMaxScaleConstraint : Microsoft.MixedReality.Toolkit.UI.TransformConstraint
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/MinMaxScaleConstraint")>]
type MinMaxScaleConstraint = class
    inherit TransformConstraint
Public Class MinMaxScaleConstraint
Inherits TransformConstraint
Inheritance
UnityEngine.MonoBehaviour
MinMaxScaleConstraint
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

MinMaxScaleConstraint()

Fields

worldPoseOnManipulationStart (Inherited from TransformConstraint)

Properties

ConstraintType
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)
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

ScaleMaximum

Maximum scaling allowed

ScaleMaximumVector

Accessor for the maximum scale along all three axes.

ScaleMinimum

Minimum scaling allowed

ScaleMinimumVector

Accessor for the minimum scale along all three axes.

TargetTransform
Obsolete.

Transform that we intend to apply constraints to

(Inherited from TransformConstraint)

Methods

ApplyConstraint(MixedRealityTransform)

Clamps the transform scale to the scale limits set by Microsoft.MixedReality.Toolkit.UI.MinMaxScaleConstraint.SetScaleLimits such that:

  • No one component of the returned vector will be greater than the max scale.
  • No one component of the returned vector will be less than the min scale.
  • The returned vector's direction will be the same as the given vector
Initialize(MixedRealityPose)
Obsolete.

Intended to be called on manipulation started

(Inherited from TransformConstraint)
Initialize(MixedRealityTransform)
OnDisable() (Inherited from TransformConstraint)
OnEnable() (Inherited from TransformConstraint)

Applies to