Читати англійською Редагувати

Поділитися через


MaintainApparentSizeConstraint Class

Definition

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

C++
public ref class MaintainApparentSizeConstraint : Microsoft::MixedReality::Toolkit::UI::TransformConstraint
Inheritance
UnityEngine.MonoBehaviour
MaintainApparentSizeConstraint

Constructors

Fields

Properties

ConstraintType
ExecutionPriority

Execution order priority of this constraint. Lower numbers will be executed before higher numbers.

(Inherited from TransformConstraint)
HandType

Whether this constraint applies to one hand manipulation, two hand manipulation or both

(Inherited from TransformConstraint)
ProximityType

Whether this constraint applies to near manipulation, far manipulation or both

(Inherited from TransformConstraint)
TargetTransform
Obsolete.

Transform that we intend to apply constraints to

(Inherited from TransformConstraint)

Methods

ApplyConstraint(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.

Initialize(MixedRealityPose)
Obsolete.

Intended to be called on manipulation started

(Inherited from TransformConstraint)
Initialize(MixedRealityTransform)

Intended to be called on manipulation started

OnDisable() (Inherited from TransformConstraint)
OnEnable() (Inherited from TransformConstraint)

Applies to

Продукт Версії
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0