bevy_mod_raycast
bevy_mod_raycast copied to clipboard
Add CursorRayCam component to filter cameras used by CursorRayPlugin
I'm using the CursorRayPlugin for my project, but currently, update_cursor_ray updates the CursorRay based on every camera in the world with no filter options. This breaks the plugin for my project which uses multiple cameras.
This pr fixes this by adding the CursorRayCam component to attach to cameras to mark them as targets for the CursorRayPlugin.