Back to API Reference
Enum

UniTextWorldRaycaster.BlockingObjects

Physics systems consulted for occlusion between the camera and a text hit.

public static readonly BlockingObjects None = 0

No occlusion check. Other raycasters (if present) still participate via distance sort.

public static readonly BlockingObjects TwoD = 1

Check 2D colliders (Physics2D).

public static readonly BlockingObjects ThreeD = 2

Check 3D colliders (Physics).

public static readonly BlockingObjects All = 3

Check both 2D and 3D colliders.