The '''SlotRaycastTransferPortal''' acts very similarly to the [[Component:MeshUVRaycastPortal]] except that it works on colliders hitting a slot hiearchy to another slot rather than just a mesh and a camera.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Exit|Slot|
|Exit|Slot| The slot to send the raycast through if it hits this slot's hierarchy, converting the hit point / direction in this component slot's local space to the space of the slot specified here.
|OverrideHitTriggers|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Bool|Bool]]>'''|TypeAdv1=true| Whether to override if a laser coming through will hit triggers and what to override it with.
|Filter|{{RootFieldType|SyncDelegate`1|[[Type:Func`3|Func`3]]<[[Type:ICollider|ICollider]], [[Type:Int|Int]], [[Type:Bool|Bool]]>}}|TypeAdv2=true| The filter we should apply if a raycast comes through this portal?
|FilterMode|FilterCombineMode|
|FilterMode|FilterCombineMode| If a raycast being transfered has its own filter, how should we combine it with <code>Filter</code> if it exists?.
}}
}}
== Behavior ==
== Usage ==
{{stub}}
== Examples ==
== Examples ==
{{stub}}
== See Also ==
== See Also ==
* [[Component:MeshUVRaycastPortal]]
[[Category:Components:Physics:Extensions{{#translation:}}|Slot Raycast Transfer Portal]]
[[Category:Components:Physics:Extensions{{#translation:}}|Slot Raycast Transfer Portal]]
[[Category:Components{{#translation:}}|Slot Raycast Transfer Portal]]
[[Category:Components{{#translation:}}|Slot Raycast Transfer Portal]]
[[Category:ComponentStubs]]
Latest revision as of 21:08, 2 February 2025
Component image
Slot Raycast Transfer Portal component as seen in the Scene Inspector
The SlotRaycastTransferPortal acts very similarly to the Component:MeshUVRaycastPortal except that it works on colliders hitting a slot hiearchy to another slot rather than just a mesh and a camera.
The slot to send the raycast through if it hits this slot's hierarchy, converting the hit point / direction in this component slot's local space to the space of the slot specified here.