D
D
DANICH702021-02-06 18:28:08
Unity
DANICH70, 2021-02-06 18:28:08

How to set the transparency of a UI object through code?

I need to set the transparency of a UI object through code. Who will help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wallker2048, 2021-02-07
@DANICH70

You can hang a CanvasGroup component, which has an alpha property. Also, if we are talking about the Image component, you can set the Color with the alpha you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question