API reference

EnvironmentRaycastHitStatus Enum

Status of the environment raycast.

Enumeration Constants

MemberDescription
Hit
The intersection with the environment is found. EnvironmentRaycastManager.Raycast returns 'true' only in this case.
HitPointOccluded
The ray intersects with the environment, but the actual hit point is invisible.
The EnvironmentRaycastHit.point will contain the last visible point of the ray, but EnvironmentRaycastManager.Raycast will return 'false'.
NotReady
The raycasting system is not ready yet or the EnvironmentRaycastManager is not enabled. It takes several frames after the EnvironmentRaycastManager is enabled before the raycast is ready.
HitPointOutsideOfCameraFrustum
The hit point can't be determined because it lies outside of the depth camera frustum.
RayOccluded
The ray is completely occluded by the environment.
NoHit
The intersection with the environment is not found.
NotSupported
The environment raycast is not supported. Check the EnvironmentRaycastManager.IsSupported before calling raycasting methods.