We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to initialize persistent raycast according to https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/manual/features/raycasts.html but it always returns null. I am using AR Foundation 5.1.1 and my iPad, which has LIDAR.
Here is the relevant part of my code:
private ARRaycastManager raycastManager; private Vector2 screenCenter; private ARRaycast persistentRaycast; private void Awake() { raycastManager = GetComponent<ARRaycastManager>(); screenCenter = new Vector2(Screen.width / 2, Screen.height / 2); persistentRaycast = raycastManager.AddRaycast(screenCenter, 3.0f); if (persistentRaycast == null) { Debug.LogError("PersistentRaycast was not created successfully."); } // ...
The text was updated successfully, but these errors were encountered:
Have you looked at the logs? I would expect there to be a relevant error message in the console.
Sorry, something went wrong.
No branches or pull requests
I am trying to initialize persistent raycast according to https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/manual/features/raycasts.html but it always returns null. I am using AR Foundation 5.1.1 and my iPad, which has LIDAR.
Here is the relevant part of my code:
The text was updated successfully, but these errors were encountered: