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()); }