docs.unity3d.com
    Show / Hide Table of Contents

    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>

    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