I have created 3 different UI canvases in worldspace so I can transition between then by swivelling the camera.
I now am trying to get the code attached.
I have an empty object containing the 3 canvases.
I have created a helper script with things such as startgame, exitprogram. These are defined as public.
However I cannot see the function in the button when I add an even. I have tried adding the helper script to the empty object and to the canvas (so would have to add it to all 3) but I still cannot see the functions I have written.
All I always get are GameObject, RectTransform, CanvasRenderer, Image and Button… none of which contain my public functions I have coded. (yes I have saved my work).