Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SGraphicRaycaster Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SGraphicRaycaster:
ScriptClassComponent< T > ScriptClass< T > ScriptClassWrapper< T > ScriptClass

Public Member Functions

SUIRaycastResult Raycast ()
 Perform the raycast against the list of graphics associated with the Canvas.
 
- Public Member Functions inherited from ScriptClassWrapper< T >
override void Initialise (SScript runtime, object wrapper)
 
- Public Member Functions inherited from ScriptClass
void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
void Initialise (SScript runtime, object wrapper)
 

Properties

int SortOrderPriority [get]
 
int RenderOrderPriority [get]
 
- Properties inherited from ScriptClassComponent< T >
SGameObject GameObject [get]
 Return the GameObject which component added.
 
- Properties inherited from ScriptClass< T >
override bool Alive [get]
 Return if the component is alive.
 
- Properties inherited from ScriptClassWrapper< T >
_wrap [get]
 
- Properties inherited from ScriptClass
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from ScriptClass
void Initialise (SScript runtime)
 

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)
SUIRaycastResult Raycast()
Perform the raycast against the list of graphics associated with the Canvas.
Definition SGraphicRaycaster.cs:40

Property Documentation

◆ RenderOrderPriority

int SineSpace.Scripting.Components.SGraphicRaycaster.RenderOrderPriority
get

◆ SortOrderPriority

int SineSpace.Scripting.Components.SGraphicRaycaster.SortOrderPriority
get