- About XR
- XR Unity SDK
- XR SDK Release Notes
- Version:1.0.3
- Version:1.0.2
- Version:1.0.1
- Version:1.0.0
- Version:0.9.59
- Version:0.9.58
- Version:0.9.57
- Version:0.9.56
- Version:0.9.55
- Version:0.9.54
- Version:0.9.53
- Version:0.9.52
- Version:0.9.51
- Version:0.9.38
- Version:0.9.37
- Version:0.9.34
- Version:0.9.33
- Version:0.9.32
- Version:0.9.31
- Version:0.9.30
- Version:0.9.24
- Version:0.9.23 Beta
API - XRBaseRaycaster¶
User can create raycaster by inheritan this class.
Propertie¶
public virtual Vector3 Direction { get; set; }
Description
Virtual vector3 variable. Usually use this to store raycast direction.
public virtual bool IsDrag { get; set; }
Description
Virtual boolean variable. Input module will use this property to recognize whether this raycaster is dragging.
public virtual bool IsFocus { get; set; }
Description
Virtual boolean variable. Input module will use this property to recognize whether this raycaster is focusing.
public virtual bool IsPress { get; set; }
Description
Virtual boolean variable. Input module will use this property to recognize whether this raycaster is pressing.
public virtual Vector3 Origin { get; set; }
Description
Usually use this to store raycast origin.
public virtual bool UseRaycast { get; set; }
Description
Virtual boolean variable. Determine whether the raycaster should be process or not by input module.
Method¶
public RaycasterResult HitResult
Description
RaycasterResult. Unity class, can use this to store result of raycast.
public abstract RaycastResult Raycast(XRPointerEventData eventData)
Description
Abstract function. The function will process by input module and return RaycastResult to input module.