Quantcast
Channel: Photon Voice — Photon Engine
Viewing all articles
Browse latest Browse all 671

Different levels of communication with Photon Voice

$
0
0
Hi! We are working with Photon to create a multiplayer experience with communication. We want to have different levels of communication with Photon Voice and 3D sound from Unity, so we have 3 different buttons :
-Turn microphone off --> Listen everyone but no one can listen to me
-Microphone for short distance -> Listen everyone but just people near me can listen to me
-Microphone for long distance -> Listen everyone and everyone can listen to me

What we are doing right now is sending RPCs’ when a button is clicked and changing the max distance of the AudioSource that is located in the prefab of the player but this is not working. Is there a way to do this and it is not necessary to do this with MaxDistance, we just thought that was easier. Thank you!
Code Screenshot --> https://drive.google.com/file/d/1pTNow4a69ideeYLNQ-08aoe0Ktys25Lx/view?usp=sharing

Viewing all articles
Browse latest Browse all 671

Trending Articles