MoveToTarget 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 provides functionality to move the hand hint from a tracking position to a target position over time.
public ref class MoveToTarget : UnityEngine::MonoBehaviour
public class MoveToTarget : UnityEngine.MonoBehaviour
type MoveToTarget = class
inherit MonoBehaviour
Public Class MoveToTarget
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourMoveToTarget
Animation |
Lerp curve that controls the animation position over time from the trackingObject to the targetObject. |
Duration |
Duration of move from tracking object to target object in seconds. |
Root |
Shared parent between tracking and target objects used for relative local positions. |
Target |
Target to move to. |
Target |
Tunable offset to get the GameObject to arrive at the right target position. |
Tracking |
Object to track. |
Follow() |
Starts coroutine to follow the target object. |
Move |
Starts coroutine to lerp from current position to target position |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4 |