Hello, how can I access a Button component’s Fade duration?
I tried a few things but I can’t seem to get it right.
Hello, how can I access a Button component’s Fade duration?
I tried a few things but I can’t seem to get it right.
[SerializeField] Button button;
public void ChangeFade(float f)
{
ColorBlock cBlock = button.colors;
cBlock.fadeDuration = f;
button.colors = cBlock;
}