Class YVRGraphicRaycaster
Raycaster used for raycasting graphic targets
Inheritance
Object
Component
Behaviour
MonoBehaviour
UIBehaviour
BaseRaycaster
GraphicRaycaster
YVRGraphicRaycaster
Namespace: YVR.Core
Assembly: YVR.Core.Runtime.dll
Syntax
[RequireComponent(typeof(Canvas))]
public class YVRGraphicRaycaster : GraphicRaycaster
Fields
Name | Description |
---|---|
m_RaycastHitResults | Raycaster used for raycasting graphic targets |
Properties
Name | Description |
---|---|
canvas | Raycaster used for raycasting graphic targets |
eventCamera | The camera used to convert rayhit's world position to screen position |
Methods
Name | Description |
---|---|
GetRaycastResultScreenPosition(RaycastResult) | Convert hit point position from world space to the screen space |
GraphicRaycast(Canvas, Ray, List<RaycastHit>) | Raycaster used for raycasting graphic targets |
Raycast(PointerEventData, List<RaycastResult>) | Processing actual raycast, will be triggered by EventSystem.RaycastAll |
Raycast(YVRPointerEventData, ICollection<RaycastResult>) | Raycaster used for raycasting graphic targets |