-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In mirror 93.0.1 and unity 6000.0.24f1 MirrorClient and MirrorServer are not found #40
Comments
Hi @Vince577 the symbol required is |
@adrenak , It fixed the errors but another question is how do i set it up in the player |
You mean you want to sound to come from avatars of the players? You'd need two things:
I'll write a guide on this and add a sample soon. But here's the general approach. On each client you need to be able to access the avatar of the other clients. This is required so that when they join, you can parent the AudioSource that plays the audio of that client to their avatar. Once you have a system in place that allows you to access the avatar GameObject of other clients in the game, you can use client.OnPeerJoined event that lets you know when another peer joins the audio chat. Here's the part of the sample scene that uses it for creating a UI element for example. You can access the output of each client using
But, the
Let me know if this works! |
@adrenak On this line it says client does not contain a definition for PeerOutputs var output = client.PeerOutputs[id] as StreamedAudioSourceOutput; Also do I have to add anything to the player gameobject? This line goes in the start void or the update void right? Would this script go on the player? And this would allow players to hear other players? |
My bad! It's All this code is something you want in a For example, the |
@adrenak Players can't hear other players voices at all, do I have to add a special script to the player prefab along with the audio source, or could it be that it might be using a different microphone, or both? I'm using parallel sync and a kcp transport if that helps. Also all players are the prefab. Also the same thing is happening in the Group chat sample. Also instead of parenting a audio source to the player or whatever could I instead just get the audio source the player comes with? |
@Vince577 since there's no tutorial/doc for this yet, I might need some more information to help you out based on what your current usage looks like. You can add me on Discord |
When I imported Univoice and the samples in the group voice call sample the "GROUP VOICE CALL SAMPLE" game objects scripts class cannot be found because the #if and #end if and 2 errors pop up saying MirrorClient and MirrorServer cannot be found. I have everything correctly imported and UNIVOICE_MIRROR in the Scripting Define Symbols.
The text was updated successfully, but these errors were encountered: