PiMaker / ltcgi

Optimized plug-and-play realtime area lighting using the linearly transformed cosine algorithm for Unity/VRChat.
https://ltcgi.dev
Other
442 stars 25 forks source link

No UdonSharpBehaviour class found in script file #11

Closed dark-swordsman closed 1 year ago

dark-swordsman commented 1 year ago

I am trying to use the USharpVideoAdapter, but the script has this error. Tried to diagnose but I can not figure out how to solve it.

Double checked UdonSharp, USharpVideo, and the VRCSDK.

Assets/_pi_/_LTCGI/Adapters/LTCGI_USharpVideoAdapter.cs(63,6): System.Exception: No UdonSharpBehaviour class found in script file, you must define an UdonSharpBehaviour class in a script referenced by an UdonSharpProgramAsse

image

dark-swordsman commented 1 year ago

I realized that this was due to UdonSharp being an old 0.20 version. I installed VCC and got it to version 1.1.6, however, now it does not show the "Auto-Configure USharpVideo" like the guide shows in the docs on the website. It just says "Re-Detect AudioLink".

image

PiMaker commented 1 year ago

Do you have a working U# video player in your scene? Generally, for troubleshooting check out the discord server linked in the docs and the readme!

dark-swordsman commented 1 year ago

Apologies, I solved the issue and forgot to come back here.

I downgraded my VRC Base and VRC World packages from 3.1.10 to 3.1.9. Then re-upgraded them back to 3.1.10. I did this because the USharpVideo player was also not working properly.

After reimporting USharpVideo and spawning a new prefab, the player works and LTCGI was able to find the video player.