- Home /
[CanvasGroup] alpha on children as combined (merged) texture?
Hi,
is there are way to have the CanvasGroup's alpha property affecting it's children as those were merged together? I didn't expect, that the alpha value is applied to all children separately. If this is not possible, what other options are there?
Thanks in advance!
In case I couldn't explain what I want:
(full alpha) (half alpha, but the two shines through, meaning the CanvasGroup is not composited together first)
I am using multiple canvasgroup components and changing alpha in parrent changes alpha in Child objects too. If its that what you need, are you sure your script for that is correct?
For testing I even didn't script anything. I was just changing the alpha value of the CanvasGroup directly.
And changing it doesnt affect childs at all? Strange. I am on trip now so I cant check that in unity to show you my setup
I'm not sure if you got me right: Both children are affected, but separately (see images above). It's like having two layers and changing both layers' opacity. But as it is a CanvasGroup I expected, that it will be like both layers merged and the merged one being alpha'ed.
So to be clear, by using your script you want to change parent alpha leaving childs alpha as it is?
Answer by trzmiel · Aug 26, 2015 at 09:58 PM
@RafiXWPT @Maweypeyyu Hi. I have this same problem. Have you solved it? Layout element component does not have "ignore parent" box...