Changing the Color of an Object

Asked 1 years ago, Updated 1 years ago, 62 views

I would like to change the color of the button to a color that is not the default color (to make it visually clear that the button cannot be used), but is there any way Unity can do this with a script?

c# unity3d

2022-09-30 16:27

1 Answers

Button.colors.disabledColor

Here's dynamic button color access.

Sample: http://docs.unity3d.com/jp/current/ScriptReference/UI.ColorBlock-disabledColor.html


2022-09-30 16:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.