Changing the Color of an Object

Asked 2 years ago, Updated 2 years ago, 77 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.