MerlinVR / USharpVideo

A basic video player made for VRChat using Udon and UdonSharp
MIT License
326 stars 43 forks source link

Strange wall of errors upon importing, and another upon actually running. Player doesn't work in both build-and-test and in editor. #57

Closed Nagmeister closed 1 year ago

Nagmeister commented 1 year ago

On import: image On run: image (part 1) image (part 2)

I'll be honest, looking at this I have no idea what any potential fixes I can try would be. Any help? I assume something's gone wrong with the 'inputfield' class, since the built-in video players also don't work.

MerlinVR commented 1 year ago

Click this menu item image

and reimport the unitypackage for the video player

Nagmeister commented 1 year ago

That fixed the wall of errors. I can now set a default playlist and have it work, but trying to use the input field in the editor, in the build-and-test, or live in the uploaded world doesn't work.

MerlinVR commented 1 year ago

Reload the SDK until it works, Unity sucks.

Nagmeister commented 1 year ago

I think I'm just going to accept that my project's cursed and avoid putting a video player in for this one; can't use the text box on this or the default video players, and I've reloaded the SDK probably 30 times by now.

MerlinVR commented 1 year ago

You can also try deleting Unity's Library folder and restarting the editor

Nagmeister commented 1 year ago

I think there was just something messed up with Unity itself. That fix didn't work; what worked was making a new project through the VRCCC, importing udonsharp and the player, and then copying everything over to the new project - assets, scene, everything - and somehow, it decided to work. I won't question it; just gonna leave this as a lesson that sometimes, Unity just hates us