Make button to be pressed by code ?

How can I make an UI button to be pressed by C# code ?

Fake it? Using code you could still run that script and mybe you could also change the look of the button?



if I remember correctly, check out ExecuteEvents class and ExecuteEvents.Execute - this might help you in this issue. It’s some time since I’ve used it so I can’t help you much more than this!