Class MinMaxScaleConstraint
Component for setting the min/max scale values for ObjectManipulator or BoundsControl
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class MinMaxScaleConstraint : TransformConstraint
Properties
ConstraintType
Declaration
public override TransformFlags ConstraintType { get; }
Property Value
Type | Description |
---|---|
TransformFlags |
Overrides
RelativeToInitialState
Min/max scaling relative to initial scale if true
Declaration
public bool RelativeToInitialState { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ScaleMaximum
Maximum scaling allowed
Declaration
public float ScaleMaximum { get; set; }
Property Value
Type | Description |
---|---|
Single |
ScaleMinimum
Minimum scaling allowed
Declaration
public float ScaleMinimum { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
ApplyConstraint(ref 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
Declaration
public override void ApplyConstraint(ref MixedRealityTransform transform)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityTransform | transform |
Overrides
Start()
Declaration
public override void Start()