SolverHandler 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.
This class handles the solver components that are attached to this GameObject
[UnityEngine.AddComponentMenu("MRTK/Spatial Manipulation/Solvers/Solver Handler")]
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/solvers/solver")]
public class SolverHandler : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/Spatial Manipulation/Solvers/Solver Handler")>]
[<UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/solvers/solver")>]
type SolverHandler = class
inherit MonoBehaviour
Public Class SolverHandler
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourSolverHandler
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute
Additional |
Add an additional offset of the tracked object on which to base the solver on. |
Additional |
Additional rotation to be added to of the tracked object. |
Alt |
Alternate scale. |
Current |
Currently tracked hand or motion controller, if applicable. |
Delta |
The timestamp the solvers will use for calculations. |
Goal |
The position to which the solver is trying to move. |
Goal |
The rotation to which the solver is trying to rotate. |
Goal |
The scale to which the solver is trying to scale. |
Left |
The interactor used when solving for the left hand / controller. |
Preferred |
Controller side to favor and pick first if the Handedness is set to both left and right. |
Right |
The interactor used when solving for the left hand / controller. |
Solvers |
List of solvers that this handler will manage and update. |
Tracked |
If tracking hands or motion controllers, determines which hand(s) are valid attachments. |
Tracked |
When TrackedTargetType is set to hand joint, use this specific joint to calculate position and orientation |
Tracked |
Tracked object from which to calculate position and orientation. To manually override and use a scene object, use the TransformTarget field. |
Transform |
Manual override for when TrackedTargetType is set to CustomOverride |
Transform |
The target transform upon which the solvers will act. |
Update |
Indicated whether or not this SolverHandler calls SolverUpdate() every frame. |
Attach |
Begin the process of tracking a new object as defined by the TrackedTargetType property. |
Detach |
Clear the parent of the internally created tracking-target game object. |
Is |
Determines whether or not the specified handedness is valid for solver scenarios. |
On |
A Unity event function that is called when the script component has been destroyed. |
Refresh |
Clears the transform target and attaches to the current TrackedTargetType. |
Start() |
A Unity event function that is called on the frame when a script is enabled just before any of the update methods are called the first time. |
Update() |
A Unity event function that is called every frame, if this object is enabled. |
Táirge | Leaganacha |
---|---|
MRTK3 Spatial Manipulation | 3.0, 3.1, 3.2 |