SGraphicRaycaster
ClientComponents
On this classRaycast
- Functions
- Raycast
- Properties
- Sort
Order Priority - Render
Order Priority - Game
Object
Members 4
| Function | Raycast | Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result. |
| Property | SortOrderPriority | Priority of the raycaster based upon render orderPriority of the raycaster based upon sort order. |
| Property | RenderOrderPriority | Priority of the raycaster based upon render order. |
| Property | GameObject | – |
Functions
Raycast
Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.
Returns
SUIRaycastResult
Example
Lua
raycastResult = Space.Host.ExecutingObject.GraphicRaycaster.Raycast()
Lua
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)
Properties
SortOrderPriorityRead only
int SortOrderPriority {get; }
Priority of the raycaster based upon render orderPriority of the raycaster based upon sort order.
Example
Lua
Space.Host.ExecutingObject.GraphicRaycaster.SortOrderPriority= 1
RenderOrderPriorityRead only
int RenderOrderPriority {get; }
Priority of the raycaster based upon render order.
Example
Lua
Space.Host.ExecutingObject.GraphicRaycaster.RenderOrderPriority = 1
GameObjectRead only
Example
Lua
theGameObject = Space.Host.ExecutingObject.GraphicRaycaster.GameObject



