This function creates an environment raycaster, which is used to perform raycasting operations against the device depth. Unlike
Raycast() and
RaycastAll(), no space setup is required for performing these raycasts. It initializes the necessary components and resources required for the raycasting process. The environment raycaster may take a few frames to initialize. During this time, its status can be checked using the
EnvironmentRaycasterStatus() function. Alternatively, you can directly call
RaycastEnvironment(), which will return a status of NotReady if the raycaster is not yet ready.