Interface INetcodeParticipant
Namespace: Unity.Cloud.Presence.Runtime
Syntax
public interface INetcodeParticipant
Properties
GenericDataHandler
Provide the GenericDataHandler
Declaration
IGenericDataHandler GenericDataHandler { get; }
Property Value
| Type | Description |
|---|---|
| IGenericDataHandler |
IsOwner
Indicates if NetcodeParticipant is owned by this process
Declaration
bool IsOwner { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
ParticipantId
Participant Id
Declaration
ParticipantId ParticipantId { get; }
Property Value
| Type | Description |
|---|---|
| ParticipantId |
Transform
Provide the NetcodeParticipant Transform
Declaration
Transform Transform { get; }
Property Value
| Type | Description |
|---|---|
| Transform |
Methods
SetJoinVoice(Boolean)
Set join voice flag if owned (Server RPC call)
Declaration
void SetJoinVoice(bool joined)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | joined | The joined status to set |
SetMicLevel(Single)
Set microphone level if owned (Server RPC call)
Declaration
void SetMicLevel(float micLevel)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | micLevel | The microphone level to set |
SetMute(Boolean)
Set muted flag if owned (Server RPC call)
Declaration
void SetMute(bool muted)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | muted | The muted status to set |
SetParticipantTransform(Vector3, Quaternion)
Set participant position and rotation if owned (Server RPC call)
Declaration
void SetParticipantTransform(Vector3 position, Quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to set |
| Quaternion | rotation | The rotation to set |
Events
ParticipantIdChanged
Event when the Participant Id changes
Declaration
event Action<INetcodeParticipant, ParticipantId> ParticipantIdChanged
Event Type
| Type | Description |
|---|---|
| Action<INetcodeParticipant, ParticipantId> |
VoiceStatusChanged
Event when the voice status changes
Declaration
event Action<INetcodeParticipant, NetworkVoiceStatus> VoiceStatusChanged
Event Type
| Type | Description |
|---|---|
| Action<INetcodeParticipant, NetworkVoiceStatus> |