Skip to content

salvage: Unity multi-drone CaptureCameras lookup (credit @shabpompeiano #4815)#9797

Open
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/salvage-unity-multidrone-cameras-4815-20260721
Open

salvage: Unity multi-drone CaptureCameras lookup (credit @shabpompeiano #4815)#9797
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/salvage-unity-multidrone-cameras-4815-20260721

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Salvage of @shabpompeiano’s approach in #4815, rebased onto current main with a null-safe helper and clearer multi-vehicle comments.

SetUpCameras used GameObject.FindGameObjectWithTag("CaptureCameras"), which only returns the first match in the scene. In multi-drone Unity setups, every vehicle therefore registered the same camera set and simGetImages only reflected one drone.

This finds the CaptureCameras child under the current vehicle by name, matching the original salvage intent.

Credit

Original work: @shabpompeiano in #4815

Verification

microsoft#4815)

Find CaptureCameras under the current vehicle instead of the first
scene object with that tag so simGetImages works for multi-drone Unity setups.
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

Successfully merging this pull request may close these issues.

1 participant