Script cannot be attached

I have a script that is supposed to be able to to be attached to an object, however when I parse it no script object appears and I cannot attach the script to anything. The script is the ButtonsStyle.js, and is written in a similar fashion to the ButtonsUI.js which can be attached.

That’s a peculiar syntax in your script. I suggest creating a new Script in the Editor and just copy pasting its structure for your other scripts.

1 Like