llealloo/audiolink

No effects when in VRChat but fine in Unity

JoshWalki opened this issue · 1 comments

I'm new to using AudioLink so I could be doing something completely wrong, so apologies in advance.

I had implemented everything into my own world to have an annoying issue where AudioLink works fine in Unity play but as soon as I test and build to VRChat, nothing works but the audio still plays.

This also happens when using the ExampleScene.

I am using the latest SDK (2021.07.12.18.53) and UdonSharp (v0.20.1) on Unity 2018.4.20f1.
I also tried with UdonSharp v0.20.0 with no difference.

This is the error I am getting in the console from the ExampleScene:

NullReferenceException: Object reference not set to an instance of an object
VRCAudioLink.AudioLinkEditor.LinkAll () (at Assets/AudioLink/Scripts/AudioLink.cs:390)
VRCAudioLink.AudioLinkEditor.OnInspectorGUI () (at Assets/AudioLink/Scripts/AudioLink.cs:380)
UdonSharpEditor.UdonBehaviourOverrideEditor.OnInspectorGUI () (at Assets/UdonSharp/Editor/Editors/UdonSharpBehaviourEditor.cs:507)
UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1647)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

Appreciate the help.

Found that Unity was using a cached version of VRChat since I use an independent install of VRChat for world testing.
I had changed this in Unity on the SDK but it was still hooked to this directory for whatever reason.