Class Physics2DRaycaster
Simple event system using physics raycasts.
Inheritance
Inherited Members
Namespace: UnityEngine .EventSystems
Assembly: UnityEngine.UI.dll
Syntax
[AddComponentMenu("Event/Physics 2D Raycaster")]
[RequireComponent(typeof(Camera))]
public class Physics2DRaycaster : PhysicsRaycaster
Constructors
Physics2DRaycaster()
Declaration
protected Physics2DRaycaster()
Methods
Raycast(PointerEventData, List<RaycastResult>)
Raycast against 2D elements in the scene.
Declaration
public override void Raycast(PointerEventData eventData, List<RaycastResult> resultAppendList)
Parameters
Type | Name | Description |
---|---|---|
Pointer |
eventData | |
List<Raycast |
resultAppendList |