SetLocalUserMutedState (Unity)
- Declaration
public static void SetLocalUserMutedState(this CavrnusSpaceConnection spaceConnection, bool muted)
- Description
Mutes or un-mutes the local user. Note that there is currently no way to mute/unmute another user.
- Sample
public class LocalUserMuteWidget : MonoBehaviour
{
private CavrnusSpaceConnection spaceConn;
private CavrnusUser localUser;
public void Setup(CavrnusSpaceConnection spaceConn, CavrnusUser localUser)
{
this.spaceConn = spaceConn;
this.localUser = localUser;
}
public void ToggleMutedState() => spaceConn.SetLocalUserMutedState(!localUser.GetUserMuted());
}
Looking for labels? They can now be found in the details panel on the floating action bar.
Related content
SetLocalUserStreamingState (Unity)
SetLocalUserStreamingState (Unity)
More like this
SetLocalUserStreamingState (Unreal Engine)
SetLocalUserStreamingState (Unreal Engine)
More like this
Get/BindUserMuted (Unity)
Get/BindUserMuted (Unity)
More like this
AwaitLocalUser (Unity)
AwaitLocalUser (Unity)
More like this
BindSpaceUsers (Unity)
BindSpaceUsers (Unity)
More like this
GetCurrentSpaceUsers (Unity)
GetCurrentSpaceUsers (Unity)
More like this