日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class FixedDistanceConstraint

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

    Inheritance
    Object
    TransformConstraint
    FixedDistanceConstraint
    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 FixedDistanceConstraint : TransformConstraint

    Properties

    ConstraintTransform

    Transform to fix distance to. Defaults to the head.

    Declaration
    public Transform ConstraintTransform { get; set; }
    Property Value
    Type Description
    Transform

    ConstraintType

    Declaration
    public override TransformFlags ConstraintType { get; }
    Property Value
    Type Description
    TransformFlags
    Overrides
    TransformConstraint.ConstraintType

    Methods

    ApplyConstraint(ref MixedRealityTransform)

    Constrains position such that the distance between pose and the ConstraintTransform does not change from manipulation start

    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)

    Start()

    Declaration
    public void Start()
    Back to top Generated by DocFX