wiki.sine.space | sinespace

Difference between revisions of "Scripting/SGraphicRaycaster"

From wiki.sine.space
Jump to: navigation, search
(Created page with "=Members= {{ScriptFunction|SUIRaycastResult|Raycast|()|Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.|5=<pr...")
 
 
Line 1: Line 1:
=Members=
+
The page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sgraphicraycaster
 
+
 
+
{{ScriptFunction|SUIRaycastResult|Raycast|()|Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.|5=<pre>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)</pre>}}
+
 
+
=Properties=
+
 
+
 
+
{{ScriptFunction|int|RenderOrderPriority|{ get;set; }|Priority of the raycaster based upon render order.
+
|5= <pre>Space.Host.ExecutingObject.GraphicRaycaster.RenderOrderPriority = 1</pre>}}
+
 
+
 
+
{{ScriptFunction|int|SortOrderPriority|{ get;set; }|Priority of the raycaster based upon sort order.
+
|5= <pre>Space.Host.ExecutingObject.GraphicRaycaster.SortOrderPriority= 1</pre>}}
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 06:01, 19 September 2022

The page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/sgraphicraycaster