MinMaxScaleConstraint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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:
|
Initialize(MixedRealityPose) |
Obsolete.
Intended to be called on manipulation started (Inherited from TransformConstraint) |
Initialize(MixedRealityTransform) | |
OnDisable() | (Inherited from TransformConstraint) |
OnEnable() | (Inherited from TransformConstraint) |