Script Compile Error - Magic Numbers UI

Hello, Can’t get pass this compile error.
Compile error is preventing linking script to button. (see ScreenShots)


SS2

Bonus question, can’t seem to turn on intellisense - this is the latest version of VS

Thanks, Mike
May 2021

Hi Mike,

Did you attach the SceneLoader script to a game object? If so, does the OnClick field of the Button reference that game object? Assigning the script directly does not work.


See also: