Activate Script Using Actions?

CJWorkshop 2 months ago in Game Creator updated 2 months ago 2

I have a script which scrolls textures on an object, but i want to be able to enable it or disable it with a push of a button.

Is there a way to enable a script which is on a game object using an actions command?


Unity version:
Game Creator version:

If by enabling a script you mean the component, then yes. You can use the "Enable Component" Action and type in the name of the component. Toggling the checkbox will enable/disable the component in that game object.

Great, thanks so much!