Class TransformConstraint
Base class for all constraints
Inheritance
TransformConstraint
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public abstract class TransformConstraint : MonoBehaviour
Fields
worldPoseOnManipulationStart
Declaration
protected MixedRealityTransform worldPoseOnManipulationStart
Field Value
Type | Description |
---|---|
MixedRealityTransform |
Properties
ConstraintType
Declaration
public abstract TransformFlags ConstraintType { get; }
Property Value
Type | Description |
---|---|
TransformFlags |
HandType
Whether this constraint applies to one hand manipulation, two hand manipulation or both
Declaration
public ManipulationHandFlags HandType { get; set; }
Property Value
Type | Description |
---|---|
ManipulationHandFlags |
ProximityType
Whether this constraint applies to near manipulation, far manipulation or both
Declaration
public ManipulationProximityFlags ProximityType { get; set; }
Property Value
Type | Description |
---|---|
ManipulationProximityFlags |
TargetTransform
Transform that we intend to apply constraints to
Declaration
[Obsolete("Deprecated: Get component transform instead.")]
public Transform TargetTransform { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Methods
ApplyConstraint(ref MixedRealityTransform)
Abstract method for applying constraints to transforms during manipulation
Declaration
public abstract void ApplyConstraint(ref MixedRealityTransform transform)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityTransform | transform |
Initialize(MixedRealityPose)
Intended to be called on manipulation started
Declaration
[Obsolete("Deprecated: Pass MixedRealityTransform instead of MixedRealityPose.")]
public virtual void Initialize(MixedRealityPose worldPose)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose | worldPose |
Initialize(MixedRealityTransform)
Intended to be called on manipulation started
Declaration
public virtual void Initialize(MixedRealityTransform worldPose)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityTransform | worldPose |
OnDisable()
Declaration
protected void OnDisable()
OnEnable()
Declaration
protected void OnEnable()