Audiolink attempts to reference Udon on an avatar project, causing compile issues

Hey yall, recently i’ve fixed an issue regarding my avatar project accidentally being labeled a world project. Now i have a new issue where Audiolink is referencing udon in the VRCSDK, causing the project to enter in safe mode. I thought about asking in the proper channels for audiolink, but given as this might be an error with the VCC, i thought i’d start here. any thoughts on how i can fix this? or is audiolink just kind of banjaxed on this?

Did you try removing audio link, get yourself out of safe mode and then try adding it back in later?

Yep, moment i import, the 109 errors show up again. As far as i’m aware, avatar projects Shouldn’t have anything that needs to reference udon, right? that’s just a world thing?

Looking at the code for Audiolink, it seems like they expect avatar projects to be okay with references to UdonSynced, not sure about UdonSyncedAttribute but probably same idea.

        [UdonSynced]
        public Color themeColor1 = Color.yellow;
        [UdonSynced]
        public Color themeColor2 = Color.blue;
        [UdonSynced]
        public Color themeColor3 = Color.red;
        [UdonSynced]
        public Color themeColor4 = Color.green;

Link to code on github I was looking at. UDONSHARP will be declared for world projects.

Like the avatar project just needs to be okay with seeing [UdonSynced] used to tag(I think its a tag) some variables.

I think what I would try doing is make a new project, add in packages like audiolink, make sure its happy, specifically wait for it to finish reimporting, importing, enough that you can pan around the default scene. Then close the project and copy the Assets folder from your current project, to the new project, and see what happens. When you close the new project, if the Unity Editor really wants to save that default scene, just name it “butts”.

yknow, now that i think of it, it does make sense, seeing as audiolink needs to reference the world data to modulate the bands. i’ll give that a shot.