bevy_mod_raycast icon indicating copy to clipboard operation
bevy_mod_raycast copied to clipboard

Add CursorRayCam component to filter cameras used by CursorRayPlugin

Open rydb opened this issue 1 year ago • 0 comments

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.

rydb avatar Oct 08 '24 23:10 rydb