SGraphicRaycaster
العميلالمكونات
في هذا الصنفRaycast
الأعضاء 4
| دالة | Raycast | Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result. |
| خاصية | SortOrderPriority | Priority of the raycaster based upon render orderPriority of the raycaster based upon sort order. |
| خاصية | RenderOrderPriority | Priority of the raycaster based upon render order. |
| خاصية | GameObject | – |
الدوال
Raycast
Perform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.
القيم المرجعة
SUIRaycastResult
مثال
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)
الخصائص
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للقراءة فقط
مثال
Lua
theGameObject = Space.Host.ExecutingObject.GraphicRaycaster.GameObject



