We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class MaintainApparentSizeConstraint

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

    Inheritance
    Object
    TransformConstraint
    MaintainApparentSizeConstraint
    Inherited Members
    TransformConstraint.HandType
    TransformConstraint.ProximityType
    TransformConstraint.worldPoseOnManipulationStart
    TransformConstraint.OnEnable()
    TransformConstraint.OnDisable()
    TransformConstraint.Initialize(MixedRealityPose)
    TransformConstraint.TargetTransform
    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
    TransformConstraint.ConstraintType

    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
    TransformConstraint.ApplyConstraint(ref MixedRealityTransform)

    Initialize(MixedRealityTransform)

    Intended to be called on manipulation started

    Declaration
    public override void Initialize(MixedRealityTransform worldPose)
    Parameters
    Type Name Description
    MixedRealityTransform worldPose
    Overrides
    TransformConstraint.Initialize(MixedRealityTransform)
    In This Article
    Back to top Generated by DocFX