Language
Edit

TransformConstraint Class

Definition

Base class for all constraints that be applied to ObjectManipulator or BoundsControl components.

public abstract class TransformConstraint : UnityEngine.MonoBehaviour
type TransformConstraint = class
    inherit MonoBehaviour
Public MustInherit Class TransformConstraint
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
TransformConstraint
Derived

Remarks

The constraint system might be reworked in the future. In such a case, these existing components will be deprecated.

Constructors

Name Description
TransformConstraint()

Fields

Name Description
InitialWorldPose

The initial world pose before any manipulations.

WorldPoseOnManipulationStart

The world pose of the object when the manipulation began.

Properties

Name Description
ConstraintType

Get flags that describe the type of transformations this constraint applies to.

ExecutionPriority

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

HandType

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

ProximityType

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

Methods

Name Description
ApplyConstraint(MixedRealityTransform)

Abstract method for applying constraints to transforms during manipulation

OnDisable()

A Unity event function that is called when the script component has been disabled.

OnEnable()

A Unity event function that is called when the script component has been enabled.

OnManipulationStarted(MixedRealityTransform)

Called when manipulation starts on the attached object.

Setup(MixedRealityTransform)

Called once before any constraints are computed.

Applies to