PointerBehavior Enum

Definition

Specifies how a pointer in MRTK's default input system behaves.

C++
public enum class PointerBehavior
Inheritance
PointerBehavior

Fields

Name Value Description
Default 0

Pointer active state is managed by MRTK input system. If it is a near pointer (grab, poke), it will be always enabled. If it is not a near pointer, it will get disabled if any near pointer on the same hand is active. This is what allows rays to turn off when a hand is near a grabbable.

AlwaysOn 1

Pointer is always on, regardless of what other pointers are active.

AlwaysOff 2

Pointer is always off, regardless of what other pointers are active.

Applies to

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