MinMaxScaleConstraint Class
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
world |
(Inherited from TransformConstraint) |
Constraint |
|
Execution |
Execution order priority of this constraint. Lower numbers will be executed before higher numbers. (Inherited from TransformConstraint) |
Hand |
Whether this constraint applies to one hand manipulation, two hand manipulation or both (Inherited from TransformConstraint) |
Proximity |
Whether this constraint applies to near manipulation, far manipulation or both (Inherited from TransformConstraint) |
Relative |
Min/max scaling relative to initial scale if true |
Scale |
Maximum scaling allowed |
Scale |
Accessor for the maximum scale along all three axes. |
Scale |
Minimum scaling allowed |
Scale |
Accessor for the minimum scale along all three axes. |
Target |
Obsolete.
Transform that we intend to apply constraints to (Inherited from TransformConstraint) |
Apply |
Clamps the transform scale to the scale limits set by Microsoft.MixedReality.Toolkit.UI.MinMaxScaleConstraint.SetScaleLimits such that:
|
Initialize(Mixed |
Obsolete.
Intended to be called on manipulation started (Inherited from TransformConstraint) |
Initialize(Mixed |
|
On |
(Inherited from TransformConstraint) |
On |
(Inherited from TransformConstraint) |
Продукт | Версии |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |