How can i solve audiosource problem in udon?

I added an audio source to the variables in the Udon graph, but the message “audiosource cannot be synced” appeared below. Of course, even if I complete the graph and try to run the play mode, it doesn’t work. How do I solve this?

I would advise not trying to sync audio source parameters in your code. It can add lots of complexity. If you are wanting to play different audio sources synced across the network, I suggest you add scripts for each audio source, and send network events to trigger them.

What exactly are you trying to do may I ask?

If you need to sync audio sources, you could try instead sync a integer, and when that integer changes, set your local audio source from an array indexed by that integer. So you would need two more variables, an array of audio sources filled with all the audio sources you want to sync, and an integer to point to which audio source you want.