Class PokePointer
A near interaction pointer that generates touch events based on touchables in close proximity.
Implements
MonoBehaviour
IEventSystemHandler
IEqualityComparer
Assembly: cs.temp.dll.dll
public class PokePointer : BaseControllerPointer, MonoBehaviour, IMixedRealityControllerPoseSynchronizer, IMixedRealitySourcePoseHandler, IMixedRealitySourceStateHandler, IMixedRealityInputHandler, IMixedRealityBaseInputHandler, IMixedRealityInputHandler<float>, IMixedRealityInputHandler<Vector2>, IMixedRealityInputHandler<Vector3>, IMixedRealityInputHandler<Quaternion>, IMixedRealityInputHandler<MixedRealityPose>, IEventSystemHandler, IMixedRealityNearPointer, IMixedRealityPointer, IEqualityComparer
Fields
Declaration
protected LineRenderer line
Field Value
Type |
Description |
LineRenderer |
|
Declaration
protected LineRenderer line
Field Value
Type |
Description |
LineRenderer |
|
Declaration
protected float touchableDistance
Field Value
Declaration
protected float touchableDistance
Field Value
Declaration
protected QueryTriggerInteraction triggerInteraction
Field Value
Type |
Description |
QueryTriggerInteraction |
|
Declaration
protected QueryTriggerInteraction triggerInteraction
Field Value
Type |
Description |
QueryTriggerInteraction |
|
Declaration
protected GameObject visuals
Field Value
Type |
Description |
GameObject |
|
Declaration
protected GameObject visuals
Field Value
Type |
Description |
GameObject |
|
Properties
The closest touchable component that has been detected.
Declaration
public BaseNearInteractionTouchable ClosestProximityTouchable { get; }
Property Value
The closest touchable component that has been detected.
Declaration
public BaseNearInteractionTouchable ClosestProximityTouchable { get; }
Property Value
The current object that is being touched.
Declaration
public GameObject CurrentTouchableObjectDown { get; }
Property Value
Type |
Description |
GameObject |
|
The current object that is being touched.
Declaration
public GameObject CurrentTouchableObjectDown { get; }
Property Value
Type |
Description |
GameObject |
|
Whether to ignore colliders that may be near the pointer, but not actually in the visual FOV.
This can prevent accidental touches, and will allow hand rays to turn on when you may be near
a touchable but cannot see it. Visual FOV is defined by cone centered about display center,
radius equal to half display height.
Declaration
public bool IgnoreCollidersNotInFOV { get; set; }
Property Value
Declaration
public override bool IsInteractionEnabled { get; }
Property Value
Overrides
Declaration
public override bool IsInteractionEnabled { get; }
Property Value
Overrides
Declaration
public bool IsNearObject { get; }
Property Value
Declaration
public bool IsNearObject { get; }
Property Value
The LayerMasks, in prioritized order, that are used to determine the touchable objects.
Declaration
public LayerMask[] PokeLayerMasks { get; }
Property Value
Type |
Description |
LayerMask[] |
|
The LayerMasks, in prioritized order, that are used to determine the touchable objects.
Declaration
public LayerMask[] PokeLayerMasks { get; }
Property Value
Type |
Description |
LayerMask[] |
|
Declaration
public Vector3 PreviousPosition { get; }
Property Value
Declaration
public Vector3 PreviousPosition { get; }
Property Value
Maximum number of colliders that can be detected in a scene query.
Declaration
public int SceneQueryBufferSize { get; }
Property Value
Maximum number of colliders that can be detected in a scene query.
Declaration
public int SceneQueryBufferSize { get; }
Property Value
Maximum distance a which a touchable surface can be interacted with.
Declaration
public float TouchableDistance { get; }
Property Value
Maximum distance a which a touchable surface can be interacted with.
Declaration
public float TouchableDistance { get; }
Property Value
Specify whether queries for touchable surfaces hit triggers.
Declaration
public QueryTriggerInteraction TriggerInteraction { get; }
Property Value
Type |
Description |
QueryTriggerInteraction |
|
Specify whether queries for touchable surfaces hit triggers.
Declaration
public QueryTriggerInteraction TriggerInteraction { get; }
Property Value
Type |
Description |
QueryTriggerInteraction |
|
Methods
Declaration
protected override void OnEnable()
Overrides
Declaration
protected override void OnEnable()
Overrides
Declaration
public override void OnInputDown(InputEventData eventData)
Parameters
Overrides
Declaration
public override void OnInputDown(InputEventData eventData)
Parameters
Overrides
Declaration
public override void OnInputUp(InputEventData eventData)
Parameters
Overrides
Declaration
public override void OnInputUp(InputEventData eventData)
Parameters
Overrides
OnPostSceneQuery()
Declaration
public override void OnPostSceneQuery()
Overrides
OnPostSceneQuery()
Declaration
public override void OnPostSceneQuery()
Overrides
Declaration
public override void OnPreCurrentPointerTargetChange()
Overrides
Declaration
public override void OnPreCurrentPointerTargetChange()
Overrides
Declaration
public override void OnPreSceneQuery()
Overrides
Declaration
public override void OnPreSceneQuery()
Overrides
Declaration
public override void OnSourceDetected(SourceStateEventData eventData)
Parameters
Overrides
Declaration
public override void OnSourceDetected(SourceStateEventData eventData)
Parameters
Overrides
Declaration
public override void OnSourceLost(SourceStateEventData eventData)
Parameters
Overrides
Declaration
public override void OnSourceLost(SourceStateEventData eventData)
Parameters
Overrides
Declaration
protected void OnValidate()
Declaration
protected void OnValidate()
Explicit Interface Implementations
Declaration
bool IMixedRealityNearPointer.TryGetDistanceToNearestSurface(out float distance)
Parameters
Type |
Name |
Description |
Single |
distance |
|
Returns
Declaration
bool IMixedRealityNearPointer.TryGetDistanceToNearestSurface(out float distance)
Parameters
Type |
Name |
Description |
Single |
distance |
|
Returns
Declaration
bool IMixedRealityNearPointer.TryGetNearGraspPoint(out Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Declaration
bool IMixedRealityNearPointer.TryGetNearGraspPoint(out Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Declaration
bool IMixedRealityNearPointer.TryGetNormalToNearestSurface(out Vector3 normal)
Parameters
Type |
Name |
Description |
Vector3 |
normal |
|
Returns
Declaration
bool IMixedRealityNearPointer.TryGetNormalToNearestSurface(out Vector3 normal)
Parameters
Type |
Name |
Description |
Vector3 |
normal |
|
Returns
Implements
MonoBehaviour
IEventSystemHandler
IEqualityComparer