Breakroom is now Sinewave Campus. Book a meeting

SGraphicRaycaster

العميلالمكونات
في هذا الصنفRaycast
  1. الدوال
  2. Raycast
  3. الخصائص
  4. SortOrderPriority
  5. RenderOrderPriority
  6. GameObject
الأعضاء 4
دالةRaycastPerform the raycast against the list of graphics associated with the Canvas and returns first UI raycast result.
خاصيةSortOrderPriorityPriority of the raycaster based upon render orderPriority of the raycaster based upon sort order.
خاصيةRenderOrderPriorityPriority 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للقراءة فقط​

SGameObject GameObject {get; }

مثال

Lua
theGameObject = Space.Host.ExecutingObject.GraphicRaycaster.GameObject