How can I trigger the click event of a button component from code. I understand your confusion, I just need to do it this way.
Iβm using Cocos Creator version 3.8.1.
https://docs.cocos.com/creator/manual/en/ui-system/components/editor/button.html
check call back on script. Most of what you ask could simply be google
Iβve found this before, but itβs not what I need.
Your answer led me to the solution I needed. Thank you!