Class CurvedUIRaycaster
- Namespace
- CurvedUI
- Assembly
- Assembly-CSharp.dll
public class CurvedUIRaycaster : GraphicRaycaster
- Inheritance
-
UIBehaviour
BaseRaycaster
GraphicRaycaster
CurvedUIRaycaster
- Inherited Members
-
- Extension Methods
-
Constructors
CurvedUIRaycaster()
public CurvedUIRaycaster()
Fields
cachedRay
Field Value
- Ray
colliderContainer
public GameObject colliderContainer
Field Value
- GameObject
curEventData
public PointerEventData curEventData
Field Value
- PointerEventData
cyllinderMidPoint
public Vector3 cyllinderMidPoint
Field Value
- Vector3
eventDataToUse
public PointerEventData eventDataToUse
Field Value
- PointerEventData
gazeClickExecuted
public bool gazeClickExecuted
Field Value
- bool
gph
Field Value
- Graphic
lastCanvasPos
public Vector2 lastCanvasPos
Field Value
- Vector2
lastFrameEventData
public PointerEventData lastFrameEventData
Field Value
- PointerEventData
m_RaycastResults
public List<Graphic> m_RaycastResults
Field Value
- List<Graphic>
myCanvas
Field Value
- Canvas
mySettings
public CurvedUISettings mySettings
Field Value
- CurvedUISettings
objectsUnderGazeLastChangeTime
public float objectsUnderGazeLastChangeTime
Field Value
- float
objectsUnderPointer
public List<GameObject> objectsUnderPointer
Field Value
- List<GameObject>
overrideEventData
public bool overrideEventData
Field Value
- bool
pointingAtCanvas
public bool pointingAtCanvas
Field Value
- bool
pointingAtCanvasLastFrame
public bool pointingAtCanvasLastFrame
Field Value
- bool
s_SortedGraphics
public static readonly List<Graphic> s_SortedGraphics
Field Value
- List<Graphic>
selectablesUnderGaze
public List<GameObject> selectablesUnderGaze
Field Value
- List<GameObject>
selectablesUnderGazeLastFrame
public List<GameObject> selectablesUnderGazeLastFrame
Field Value
- List<GameObject>
showDebug
[SerializeField]
public bool showDebug
Field Value
- bool
Properties
GazeProgressImage
public Image GazeProgressImage { get; }
Property Value
- Image
PointingAtCanvas
public bool PointingAtCanvas { get; }
Property Value
- bool
Methods
AngleSigned(Vector3, Vector3, Vector3)
public float AngleSigned(Vector3 v1, Vector3 v2, Vector3 n)
Parameters
v1 Vector3
v2 Vector3
n Vector3
Returns
- float
Awake()
public override void Awake()
CheckEventCamera()
public bool CheckEventCamera()
Returns
- bool
Click()
CreateCollider()
public void CreateCollider()
CreateConvexCyllinderCollider(bool)
public GameObject CreateConvexCyllinderCollider(bool vertical = false)
Parameters
vertical bool
Returns
- GameObject
CreateCyllinderColliderMesh(bool)
public Mesh CreateCyllinderColliderMesh(bool vertical = false)
Parameters
vertical bool
Returns
- Mesh
CreateSphereColliderMesh()
public Mesh CreateSphereColliderMesh()
Returns
- Mesh
FindCommonRoot(GameObject, GameObject)
public static GameObject FindCommonRoot(GameObject g1, GameObject g2)
Parameters
g1 GameObject
g2 GameObject
Returns
- GameObject
FlatRaycast(PointerEventData, List<RaycastResult>)
public void FlatRaycast(PointerEventData eventData, List<RaycastResult> resultAppendList)
Parameters
eventData PointerEventData
resultAppendList List<RaycastResult>
FlatRaycastAndSort(Canvas, Camera, Vector2, IList<Graphic>, List<Graphic>)
public static void FlatRaycastAndSort(Canvas canvas, Camera eventCamera, Vector2 pointerPosition, IList<Graphic> foundGraphics, List<Graphic> results)
Parameters
canvas Canvas
eventCamera Camera
pointerPosition Vector2
foundGraphics IList<Graphic>
results List<Graphic>
GetObjectsHitByRay(Ray)
public List<GameObject> GetObjectsHitByRay(Ray ray)
Parameters
ray Ray
Returns
- List<GameObject>
GetObjectsUnderPointer()
public List<GameObject> GetObjectsUnderPointer()
Returns
- List<GameObject>
GetObjectsUnderScreenPos(Vector2, Camera)
public List<GameObject> GetObjectsUnderScreenPos(Vector2 screenPos, Camera eventCamera = null)
Parameters
screenPos Vector2
eventCamera Camera
Returns
- List<GameObject>
GetRaycastLayerMask()
public LayerMask GetRaycastLayerMask()
Returns
- LayerMask
GetScreenSpacePointByRay(Ray, out Vector2)
public bool GetScreenSpacePointByRay(Ray ray, out Vector2 o_positionOnCanvas)
Parameters
ray Ray
o_positionOnCanvas Vector2
Returns
- bool
HandlePointerExitAndEnter(PointerEventData, GameObject)
public void HandlePointerExitAndEnter(PointerEventData currentPointerData, GameObject newEnterTarget)
Parameters
currentPointerData PointerEventData
newEnterTarget GameObject
IsInLayerMask(int, LayerMask)
public bool IsInLayerMask(int layer, LayerMask layermask)
Parameters
layer int
layermask LayerMask
Returns
- bool
ModifyQuad(List<Vector3>, int, Vector2)
public void ModifyQuad(List<Vector3> verts, int vertexIndex, Vector2 requiredSize)
Parameters
verts List<Vector3>
vertexIndex int
requiredSize Vector2
ProcessGazeTimedClick()
public void ProcessGazeTimedClick()
ProcessMove(PointerEventData)
public virtual void ProcessMove(PointerEventData pointerEvent)
Parameters
pointerEvent PointerEventData
Raycast(PointerEventData, List<RaycastResult>)
public override void Raycast(PointerEventData eventData, List<RaycastResult> resultAppendList)
Parameters
eventData PointerEventData
resultAppendList List<RaycastResult>
RaycastToCyllinderCanvas(Ray, out Vector2, bool)
public virtual bool RaycastToCyllinderCanvas(Ray ray3D, out Vector2 o_canvasPos, bool OutputInCanvasSpace = false)
Parameters
ray3D Ray
o_canvasPos Vector2
OutputInCanvasSpace bool
Returns
- bool
RaycastToCyllinderVerticalCanvas(Ray, out Vector2, bool)
public virtual bool RaycastToCyllinderVerticalCanvas(Ray ray3D, out Vector2 o_canvasPos, bool OutputInCanvasSpace = false)
Parameters
ray3D Ray
o_canvasPos Vector2
OutputInCanvasSpace bool
Returns
- bool
RaycastToRingCanvas(Ray, out Vector2, bool)
public virtual bool RaycastToRingCanvas(Ray ray3D, out Vector2 o_canvasPos, bool OutputInCanvasSpace = false)
Parameters
ray3D Ray
o_canvasPos Vector2
OutputInCanvasSpace bool
Returns
- bool
RaycastToSphereCanvas(Ray, out Vector2, bool)
public virtual bool RaycastToSphereCanvas(Ray ray3D, out Vector2 o_canvasPos, bool OutputInCanvasSpace = false)
Parameters
ray3D Ray
o_canvasPos Vector2
OutputInCanvasSpace bool
Returns
- bool
RebuildCollider()
public void RebuildCollider()
ResetGazeTimedClick()
public void ResetGazeTimedClick()
SetupMeshColliderUsingMesh(Mesh)
public void SetupMeshColliderUsingMesh(Mesh meshie)
Parameters
meshie Mesh
ShouldStartDrag(Vector2, Vector2, float, bool)
public bool ShouldStartDrag(Vector2 pressPos, Vector2 currentPos, float threshold, bool useDragThreshold)
Parameters
pressPos Vector2
currentPos Vector2
threshold float
useDragThreshold bool
Returns
- bool
Start()
public override void Start()
TesselateQuad(List<Vector3>, float, float)
public Vector3 TesselateQuad(List<Vector3> quad, float x, float y)
Parameters
quad List<Vector3>
x float
y float
Returns
- Vector3
Update()
public virtual void Update()
UpdateSelectedObjects(PointerEventData)
public void UpdateSelectedObjects(PointerEventData eventData)
Parameters
eventData PointerEventData