enable button click event without pressing the button
is that possible if possible how do i do?
Can you explain with sample codes?
![]()
![]()
![]()
![]()
enable button click event without pressing the button
is that possible if possible how do i do?
Can you explain with sample codes?
![]()
![]()
![]()
![]()
Get a reference to your button, call Invoke() on listeners.
{
...
myButton.onClick?.Invoke();
...
}
“?” is a cleaner way of doing a null check. Invoke() is calling all subscribed methods.