How to fade a game object with all its children (Sprite Renderer / Image)?

I want to make fade in/outs for game objects with different Sprite Renderers (or Images) amongst its children, like an inventory or detailed (zoomed) views of environment items.

I don’t want to fade all these objects individually as an ugly overlap effect will be visible while fading. I would like it to fade as a single Sprite Renderer / Image.

Any idea on how to achieve this?

One way is to strike all the sprites to a single RenderTexture at full opacity, then use that texture while changing its alpha.

See enclosed demo of this.

7844700–994638–RenderTextureSetup.unitypackage (41.2 KB)

1 Like

Hey, thanks a lot Kurt. I will take a look at your demo and see if I can “translate” it to what I need. =)