SGraphicRaycaster
Index
Functions Index
| Function Name |
|---|
| SUIRaycastResult Raycast () |
Properties Index
| Property Name |
|---|
int SortOrderPriority get |
int RenderOrderPriority get |
SGameObject GameObject get |
Functions
Raycast
SUIRaycastResult Raycast ()
Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.
| Parameter | Type | Description |
|---|---|---|
- 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
SortOrderPriority
int SortOrderPriority get
Priority of the raycaster based upon render orderPriority of the raycaster based upon sort order.
- Lua
Space.Host.ExecutingObject.GraphicRaycaster.SortOrderPriority= 1
RenderOrderPriority
int RenderOrderPriority get
Priority of the raycaster based upon render order.
- Lua
Space.Host.ExecutingObject.GraphicRaycaster.RenderOrderPriority = 1
GameObject
SGameObject GameObject get
Property Description
- Lua
theGameObject = Space.Host.ExecutingObject.GraphicRaycaster.GameObject