Back to API Reference
Remarks
Attach to a
Camera to route pointer events (clicks, hover) to all active UniTextWorld components visible from that camera. Analogous to GraphicRaycaster for Canvas, but uses direct ray/plane/rect math instead of colliders — no physics dependency at the text level. Hit detection: rect containment in each component's local RectTransform rect. The full rect is the clickable area (like Canvas raycastTarget); finer-grained glyph-accurate hit testing happens inside UniTextBase.OnPointerClick via HitTestScreen. Occlusion: results carry distance, so Unity's EventSystem sorts them against any other raycaster (GraphicRaycaster, PhysicsRaycaster, Physics2DRaycaster) automatically. For scenes without a PhysicsRaycaster but with physical geometry that should block clicks, set BlockingObjects to TwoD/ThreeD/All — the raycaster will test for blocking colliders between the camera and the hit point before accepting the hit.Nested Types
public BlockingObjects BlockingMode{ get; set }Gets or sets which physics systems are consulted for occlusion.
public LayerMask BlockingMask{ get; set }Gets or sets the layer mask for blocking collider queries.
