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

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

    Show / Hide Table of Contents

    Class MinMaxScaleConstraint

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

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

    Properties

    ConstraintType

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

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

    Initialize(MixedRealityTransform)

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