Class MaintainApparentSizeConstraint
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 MaintainApparentSizeConstraint : TransformConstraint
Properties
ConstraintType
Declaration
public override TransformFlags ConstraintType { get; }
Property Value
Type | Description |
---|---|
TransformFlags |
Overrides
Methods
ApplyConstraint(ref MixedRealityTransform)
Constrains scale such that the object's apparent size at manipulation start does not change when the object is moved towards and away from the head.
Declaration
public override void ApplyConstraint(ref MixedRealityTransform transform)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityTransform | transform |
Overrides
Initialize(MixedRealityPose)
Intended to be called on manipulation started
Declaration
public override void Initialize(MixedRealityPose worldPose)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose | worldPose |