I have one script playing a tween on a UI object, and I want another script to be able to just stop it. The problem is, I don’t know how to (if I even can) reference the tween, since it isn’t really an object as far as I know, and it wasn’t defined in the script that’s trying to stop it. How can I do this? If I even can?
not sure why you would want to do this in separate scripts, but the easiest way is to just use a bindable event to communicate between the scripts
(2nd script fires the stop event → 1st script listens and stops the tween)