Camera Zoom does not work inside Custom Objects

Describe the bug

Attempting to use CameraZoom inside a CustomObject does nothing. CameraZoom expession always returns 1 for CustomObjects, works fine in normal scene.

Steps to reproduce

  • Use CameraZoom Action inside CustomObject

  • Does not matter what layer and reproduces in fresh project

Why do you need to zoom custom object layers?

Custom objects expose their own layers, which can be moved like scene layers using the same camera actions and expressions from inside the custom object’s events. This is useful when a custom object embeds its own scrolling UI, minimap or framed view that should pan independently from the scene’s camera.

Layers and cameras - GDevelop documentation

Are they not supposed to support zooming?

Respectfully, zooming is useful in many instances, what specific purpose I’m using it for is not very relevant to this bug report, but I am making reusable force-directed graphs.

They are populated programmatically and there needs to exist multiple, it needs to be reusable, and the graph itself needs to zoom and pan independently of elements layered on top.

Scenes are not really applicable in this instance, and scaling messes with the camera pan.

I can rework the structure to make it so the object is moved instead, recalculate scale for zoom based on position & camera centre and utilise object nesting for layering elements on top, but that would be a substantially more complicated work around to what appears to be an engine bug