- Home /
How do I face a WorldSpace HealthBar towards multiple cameras?
So I have a split-screen game with four cameras.. Each player has a healthbar above their character and I want to face it to all cameras so that the width is always the same. Is there a better way to do it than to create multiple Healthbars with different LayerMasks?
Comment
Answer by YagirX · Dec 24, 2021 at 11:50 AM
Try doing this in OnPost Methods ... For example OnPostRender. As little data, for example, on which SRP do you make the game, and so on.
Answer by Eno-Khaon · Dec 24, 2021 at 06:54 PM
If the health bar(s) is rendered using a Billboard Shader (with necessary tweaks), then each Camera will render it in the same way.