SGraphicRaycaster
ClientComposants
Dans cette classeRaycast
- Fonctions
- Raycast
- Propriétés
- Sort
Order Priority - Render
Order Priority - Game
Object
Membres 4
| Fonction | Raycast | Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result. |
| Propriété | SortOrderPriority | Priority of the raycaster based upon render orderPriority of the raycaster based upon sort order. |
| Propriété | RenderOrderPriority | Priority of the raycaster based upon render order. |
| Propriété | GameObject | – |
Fonctions
Raycast
Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.
Valeurs de retour
SUIRaycastResult
Exemple
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)
Propriétés
SortOrderPriorityLecture seule
int SortOrderPriority {get; }
Priority of the raycaster based upon render orderPriority of the raycaster based upon sort order.
Exemple
Lua
Space.Host.ExecutingObject.GraphicRaycaster.SortOrderPriority= 1
RenderOrderPriorityLecture seule
int RenderOrderPriority {get; }
Priority of the raycaster based upon render order.
Exemple
Lua
Space.Host.ExecutingObject.GraphicRaycaster.RenderOrderPriority = 1
GameObjectLecture seule
Exemple
Lua
theGameObject = Space.Host.ExecutingObject.GraphicRaycaster.GameObject



