So I have a zoom system controller by the player. This zoom system simply scales the layout by adding 0.02 to the layout scale every tick while a button is down. To zoom out it just subtracts 0.02 every tick while another button is down. This works fine.
Unfortunately I also have a HUD overlay on the game and I really dont want this to scale. The HUD is added via a global HUD layer.
I've tried scaling all the layers apart from the HUD but this causes some very odd behaviour from my turrets - they no longer point at the mouse (in fact all coordinates are off, I assume because the original layout scale hasn't changed and everything is still working on that).
How can I scale the whole layout, while keeping the HUD looking the same?