- Home /
UI fade with CanvasGroup vs of Image.color.alpha or Text.color.alpha performance
I wander if anyone somehow tested performacve of CanvasGroup toggle vs UIItem.color.alpha altering. Is there additional cost of CanvasGroup component present or some benefits for Canvas rendering or something. In some cases I can do any of this two and don't know what to prefer
Answer by tormentoarmagedoom · Jan 25, 2019 at 11:06 AM
Good day.
I discovered CanvasGroup some weeks ago, and I think is very usefull, because all element inside the canvas will change its alpha only with 1 command. If in the future you change or add some element in the canvas, you do not need to change the code or create new variables to change its alpha, because CanvasGroup will apply automaticly the alpha value to all elements and all its childs, so....
I recommend to use CanvasGroup to modify alpha.
Bye!
Yeah I think this way too, but if you got a bunch of tiny bits of UI like Text or Image that should be faded separately, this may be the way to squeeze a little bit of performance
Your answer
Follow this Question
Related Questions
How do I obtain children on UI canvas text 0 Answers
How do I change scene with two ui canvas text 2 Answers
,InputField backspace returns already send text 0 Answers
Ui scaling 1 Answer