ConstraintManager Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Manages constraints for a given object and ensures that Scale/Rotation/Translation constraints are executed separately.
public ref class ConstraintManager : UnityEngine::MonoBehaviour
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/constraint-manager")]
public class ConstraintManager : UnityEngine.MonoBehaviour
[<UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/constraint-manager")>]
type ConstraintManager = class
inherit MonoBehaviour
Public Class ConstraintManager
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourConstraintManager
- Attributes
-
UnityEngine.HelpURLAttribute
Auto |
Per default, constraint manager will apply all to this gameobject attached constraint components automatically. If this flag is enabled, only the selected constraint list will be applied. |
Selected |
Manually selected list of transform constraints. Note that this list will only be processed by the manager if AutoConstraintSelection is disabled. Note that this is a read only property. To add new constraints to the list call RegisterConstraint. |
Add |
Adds a constraint to the manual selection list. Note that only unique components will be added to the list. |
Apply |
|
Apply |
|
Apply |
|
Awake() | |
Initialize(Mixed |
|
Remove |
Removes the given component from the manually selected constraint list. |
Produit | Versions |
---|---|
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 |