docs.unity3d.com
    Show / Hide Table of Contents

    Class NetcodeParticipant

    Inheritance
    Object
    NetworkBehaviour
    NetcodeParticipant
    Inherited Members
    Unity.Netcode.NetworkBehaviour.__rpc_exec_stage
    Unity.Netcode.NetworkBehaviour.NetworkVariableFields
    Unity.Netcode.NetworkBehaviour.__getTypeName()
    Unity.Netcode.NetworkBehaviour.__beginSendServerRpc(System.UInt32, Unity.Netcode.ServerRpcParams, Unity.Netcode.RpcDelivery)
    Unity.Netcode.NetworkBehaviour.__endSendServerRpc(Unity.Netcode.FastBufferWriter, System.UInt32, Unity.Netcode.ServerRpcParams, Unity.Netcode.RpcDelivery)
    Unity.Netcode.NetworkBehaviour.__beginSendClientRpc(System.UInt32, Unity.Netcode.ClientRpcParams, Unity.Netcode.RpcDelivery)
    Unity.Netcode.NetworkBehaviour.__endSendClientRpc(Unity.Netcode.FastBufferWriter, System.UInt32, Unity.Netcode.ClientRpcParams, Unity.Netcode.RpcDelivery)
    Unity.Netcode.NetworkBehaviour.__createNativeList<T>()
    NetworkBehaviour.GetNetworkBehaviour(UInt16)
    NetworkBehaviour.OnGainedOwnership()
    NetworkBehaviour.OnLostOwnership()
    NetworkBehaviour.OnNetworkObjectParentChanged(NetworkObject)
    Unity.Netcode.NetworkBehaviour.__initializeVariables()
    Unity.Netcode.NetworkBehaviour.__nameNetworkVariable(Unity.Netcode.NetworkVariableBase, System.String)
    NetworkBehaviour.GetNetworkObject(UInt64)
    NetworkBehaviour.OnSynchronize<T>(BufferSerializer<T>)
    NetworkBehaviour.OnDestroy()
    NetworkBehaviour.NetworkManager
    NetworkBehaviour.IsLocalPlayer
    NetworkBehaviour.IsServer
    NetworkBehaviour.IsClient
    NetworkBehaviour.IsHost
    NetworkBehaviour.IsOwnedByServer
    NetworkBehaviour.IsSpawned
    NetworkBehaviour.NetworkObject
    NetworkBehaviour.HasNetworkObject
    NetworkBehaviour.NetworkObjectId
    NetworkBehaviour.NetworkBehaviourId
    NetworkBehaviour.OwnerClientId
    NetworkBehaviour.m_TargetIdBeingSynchronized
    Namespace: Unity.Cloud.Presence.Runtime
    Syntax
    public class NetcodeParticipant : NetworkBehaviour, INetcodeParticipant

    Properties

    GenericDataHandler

    Declaration
    public IGenericDataHandler GenericDataHandler { get; }
    Property Value
    Type Description
    IGenericDataHandler
    Implements
    INetcodeParticipant.GenericDataHandler

    IsOwner

    Declaration
    public bool IsOwner { get; }
    Property Value
    Type Description
    Boolean
    Implements
    INetcodeParticipant.IsOwner

    ParticipantId

    Declaration
    public ParticipantId ParticipantId { get; set; }
    Property Value
    Type Description
    ParticipantId
    Implements
    INetcodeParticipant.ParticipantId

    Transform

    Declaration
    public Transform Transform { get; }
    Property Value
    Type Description
    Transform
    Implements
    INetcodeParticipant.Transform

    Methods

    OnNetworkDespawn()

    Declaration
    public override void OnNetworkDespawn()
    Overrides
    NetworkBehaviour.OnNetworkDespawn()

    OnNetworkSpawn()

    Declaration
    public override void OnNetworkSpawn()
    Overrides
    NetworkBehaviour.OnNetworkSpawn()

    SetJoinVoice(Boolean)

    Declaration
    public void SetJoinVoice(bool joined)
    Parameters
    Type Name Description
    Boolean joined
    Implements
    INetcodeParticipant.SetJoinVoice(Boolean)

    SetJoinVoiceServerRpc(Boolean)

    Declaration
    [ServerRpc]
    [UsedImplicitly]
    public void SetJoinVoiceServerRpc(bool joined)
    Parameters
    Type Name Description
    Boolean joined

    SetMicLevel(Single)

    Declaration
    public void SetMicLevel(float micLevel)
    Parameters
    Type Name Description
    Single micLevel
    Implements
    INetcodeParticipant.SetMicLevel(Single)

    SetMicLevelServerRpc(Single)

    Declaration
    [ServerRpc]
    public void SetMicLevelServerRpc(float micLevel)
    Parameters
    Type Name Description
    Single micLevel

    SetMute(Boolean)

    Declaration
    public void SetMute(bool muted)
    Parameters
    Type Name Description
    Boolean muted
    Implements
    INetcodeParticipant.SetMute(Boolean)

    SetMuteServerRpc(Boolean)

    Declaration
    [ServerRpc]
    [UsedImplicitly]
    public void SetMuteServerRpc(bool muted)
    Parameters
    Type Name Description
    Boolean muted

    SetParticipantTransform(Vector3, Quaternion)

    Declaration
    public void SetParticipantTransform(Vector3 position, Quaternion rotation)
    Parameters
    Type Name Description
    Vector3 position
    Quaternion rotation
    Implements
    INetcodeParticipant.SetParticipantTransform(Vector3, Quaternion)

    SetParticipantTransformServerRpc(Vector3, Quaternion)

    Declaration
    [ServerRpc]
    [UsedImplicitly]
    public void SetParticipantTransformServerRpc(Vector3 position, Quaternion rotation)
    Parameters
    Type Name Description
    Vector3 position
    Quaternion rotation

    Events

    ParticipantIdChanged

    Declaration
    public event Action<INetcodeParticipant, ParticipantId> ParticipantIdChanged
    Event Type
    Type Description
    Action<INetcodeParticipant, ParticipantId>
    Implements
    INetcodeParticipant.ParticipantIdChanged

    VoiceStatusChanged

    Declaration
    public event Action<INetcodeParticipant, NetworkVoiceStatus> VoiceStatusChanged
    Event Type
    Type Description
    Action<INetcodeParticipant, NetworkVoiceStatus>
    Implements
    INetcodeParticipant.VoiceStatusChanged

    Extension Methods

    GenericDataExtensions.SerializeToByteArray(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023