How do I get my button to work?

My button that I made to toggle a video player (I know that the code works, I can press the “Invoke” button and it works).

Can you be more precise on how you made your toggle (Udon screenshot or USharp) and describe what doesn’t work in its behavior (like if it works in unity and not in game) ?

Thank you

I found out how to do it, I needed to switch to a U# Script instead of a C# Script.

Oh, yeah, the reason why it works in U# is because there is the UdonSharp project, but you don’t have access to the whole C# api, you may want to look at the documentation to see what you can do.

Have fun