MerlinVR / USharpVideo

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

No Program Source On Import (Solved) #66

Closed Zirainuwu closed 1 year ago

Zirainuwu commented 1 year ago

I'm extremely new to unity and trying to upload my first VRChat world so please bare with me. I was following a tutorial on how to add in a video player and followed the instructions with a few deviations due to it being a little outdated now that CreatorCompanion is out.

Even so, I imported UdonSharp 1.7.7 into the project first and then imported USharpVideo and dragged the prefab into the scene. Every time I do, the program source is empty and will not recognize the "USharpVideoPlayer" udon script to be put into the program source slot. I have tried using older versions of UdonSharp and reimporting everything repeatedly but I can't get it to work.

The udon script itself is in the scripts folder but reads the error "The associated script can not be loaded. Please fix any compile errors and assign a valid scrip." I assume this is because UdonSharp is not recognizing the script? How do I fix this?

image image_2023-03-15_133201530

Zirainuwu commented 1 year ago

The tutorial I was watching neglected to mention that you also need the Udon Toolkit for it to work- Hours spent fussing over a missing package lmao.