Skip to content
New issue

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

Support CursorRayPlugin choose the camera #125

Open
attila-lin opened this issue Nov 19, 2024 · 1 comment
Open

Support CursorRayPlugin choose the camera #125

attila-lin opened this issue Nov 19, 2024 · 1 comment

Comments

@attila-lin
Copy link

I found if I have two cameras(One for 3D scene, one for 2D UI), the CursorRayPlugin will work fail.

I can't find the solution for this situation.

May add a component to disallow the camera.

@thmxv
Copy link

thmxv commented Dec 4, 2024

Hi,

The correct solution would be to use the deferred API and mark which camera you want to use with the RaycastSource component.

Another, very bad, way to work around the issue would be to change the order the cameras are added to the world. Add the camera you want to use first. But this is very unreliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants