Scrollable 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.
An IScrollable that allows a ScrollRect to be scrolled by Unity IXRInteractors.
[UnityEngine.AddComponentMenu("MRTK/UX/Scrollable")]
[UnityEngine.RequireComponent(typeof(MixedReality.Toolkit.Experimental.InteractableEventRouter))]
public class Scrollable : MixedReality.Toolkit.MRTKBaseInteractable, MixedReality.Toolkit.Experimental.IXRHoverInteractableParent, MixedReality.Toolkit.Experimental.IXRSelectInteractableParent, MixedReality.Toolkit.IScrollable
[<UnityEngine.AddComponentMenu("MRTK/UX/Scrollable")>]
[<UnityEngine.RequireComponent(typeof(MixedReality.Toolkit.Experimental.InteractableEventRouter))>]
type Scrollable = class
inherit MRTKBaseInteractable
interface IScrollable
interface IXRInteractable
interface IXRHoverInteractableParent
interface IXRInteractableEventRouteTarget
interface IXRSelectInteractableParent
Public Class Scrollable
Inherits MRTKBaseInteractable
Implements IScrollable, IXRHoverInteractableParent, IXRSelectInteractableParent
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute
- Implements
-
IXRHoverInteractableParent IXRInteractableEventRouteTarget IXRSelectInteractableParent IScrollable Unity
Engine. XR. Interaction. Toolkit. IXRInteractable
In order to receive child select and hover event, this Scrollable object requires a InteractableEventRouter component be added to the Unity game object as well.
This is an experimental feature. This class is early in the cycle, it has been labeled as experimental to indicate that it is still evolving, and subject to change over time. Parts of the MRTK, such as this class, appear to have a lot of value even if the details haven't fully been fleshed out. For these types of features, we want the community to see them and get value out of them early enough so to provide feedback.
Cancel |
The scroll distance at which to cancel any child interactable's selection. |
Dead |
Once the ScrollingInteractor moves this distance or more, this component will start changing scroll positions of the ScrollRect. |
Hovering |
(Read Only) The list of IGazeInteractor components currently gazing this object. (Inherited from MRTKBaseInteractable) |
Hovering |
(Read Only) The list of IGazePinchInteractor components currently hovering this object. (Inherited from MRTKBaseInteractable) |
Hovering |
(Read Only) The list of IGrabInteractor components currently hovering this object. (Inherited from MRTKBaseInteractable) |
Hovering |
(Read Only) The list of IPokeInteractor components currently hovering this object. (Inherited from MRTKBaseInteractable) |
Hovering |
(Read Only) The list of IRayInteractor components currently hovering this object. (Inherited from MRTKBaseInteractable) |
Is |
Is this object hovered by any interactor other than passive targeting interactors? (Inherited from MRTKBaseInteractable) |
Is |
Is this object hovered by any gaze interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object hovered by a gaze-pinch interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object selected by a gaze-pinch interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object hovered by a grab interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object selected by a grab interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object hovered by a near touch/poke interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object selected by a poke interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object hovered by a non-gaze ray interactor? (Inherited from MRTKBaseInteractable) |
Is |
Is this object selected by a non-gaze ray interactor? (Inherited from MRTKBaseInteractable) |
Is |
Get if the ScrollableTransform is currently being scrolled or moved. |
Move |
Enter amount representing amount of smoothing to apply to the movement. Smoothing of 0 means no smoothing. Max value means no change to value. |
Poke |
The scroll distance at which to cancel any child interactable's selection. |
Poke |
Once the ScrollingInteractor moves this distance or more, this component will start changing scroll positions of the ScrollRect. |
Scrollable |
Get the transform that is backing this scrollable region. |
Scrolling |
Get the Unity IXRInteractor that is scrolling or will scroll the specified ScrollableTransform. |
Scrolling |
Get the local position of ScrollingInteractor at the start of the scroll operation. |
Scroll |
The Unity ScrollRect to scroll. |
Selecting |
(Read Only) The list of IGazePinchInteractor components currently selecting this object. (Inherited from MRTKBaseInteractable) |
Selecting |
(Read Only) The list of IGrabInteractor components currently selecting this object. (Inherited from MRTKBaseInteractable) |
Disable |
Adds the specified type to the set of interactors which cannot select this interactable (Inherited from MRTKBaseInteractable) |
Enable |
Removes the specified type to the set of interactors which cannot select this interactable (Inherited from MRTKBaseInteractable) |
Is |
(Inherited from MRTKBaseInteractable) |
Is |
Is the given type of interactor permitted to interact with this interactable? (Inherited from MRTKBaseInteractable) |
Is |
(Inherited from MRTKBaseInteractable) |
On |
When a child game object's interactable receives a "hover entered" event, this function will be invoked. |
On |
When a child game object's interactable receives a "hover exited" event, this function will be invoked. |
On |
When a child game object's interactable receives a "select entered" event, this function will be invoked. |
On |
When a child game object's interactable receives a "select exited" event, this function will be invoked. |
On |
UnityEngine.XR.Interaction.Toolkit.XRBaseInteractable.OnHoverEntered(UnityEngine.XR.Interaction.Toolkit.HoverEnterEventArgs) |
On |
(Inherited from MRTKBaseInteractable) |
On |
UnityEngine.XR.Interaction.Toolkit.XRBaseInteractable.OnHoverExited(UnityEngine.XR.Interaction.Toolkit.HoverExitEventArgs) |
On |
(Inherited from MRTKBaseInteractable) |
On |
UnityEngine.XR.Interaction.Toolkit.XRBaseInteractable.OnSelectEntered(UnityEngine.XR.Interaction.Toolkit.SelectEnterEventArgs) |
On |
(Inherited from MRTKBaseInteractable) |
On |
UnityEngine.XR.Interaction.Toolkit.XRBaseInteractable.OnSelectExited(UnityEngine.XR.Interaction.Toolkit.SelectExitEventArgs) |
On |
(Inherited from MRTKBaseInteractable) |
Process |
UnityEngine.XR.Interaction.Toolkit.IXRInteractable.ProcessInteractable(UnityEngine.XR.Interaction.Toolkit.XRInteractionUpdateOrder.UpdatePhase) |
Proizvod | Verzije |
---|---|
MRTK3 UX Core | 3.0, 3.1, 3.2 |