Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SGraphicRaycaster Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SGraphicRaycaster:
ScriptClassComponent< GraphicRaycaster >

Public Member Functions

SUIRaycastResult Raycast ()
 Perform the raycast against the list of graphics associated with the Canvas. More...
 

Properties

int SortOrderPriority [get]
 
int RenderOrderPriority [get]
 
- Properties inherited from ScriptClassComponent< GraphicRaycaster >
SGameObject GameObject [get]
 Return the GameObject which component added. More...
 

Member Function Documentation

◆ Raycast()

SUIRaycastResult SineSpace.Scripting.Components.SGraphicRaycaster.Raycast ( )

Perform the raycast against the list of graphics associated with the Canvas.

Returns
First UI raycast result.
local trans = Space.Host.ExecutingObject
local canvas = Space.Host.GetReference("Canvas")
local gr = canvas.GraphicRaycaster
function Update()
local raycast = gr.Raycast()
Space.Log(raycast.ToString())
end
trans.OnUpdate(Update)

Property Documentation

◆ RenderOrderPriority

int SineSpace.Scripting.Components.SGraphicRaycaster.RenderOrderPriority
get

◆ SortOrderPriority

int SineSpace.Scripting.Components.SGraphicRaycaster.SortOrderPriority
get
SineSpace.Scripting.Components.SGraphicRaycaster.Raycast
SUIRaycastResult Raycast()
Perform the raycast against the list of graphics associated with the Canvas.
Definition: SGraphicRaycaster.cs:40