docs.unity3d.com
    Show / Hide Table of Contents

    Interface INetcodeService

    An interface that allows to join and leave a runtime multiparticipant server

    Inherited Members
    IParticipantProvider<INetcodeParticipant>.GetServiceParticipant(Participant)
    Namespace: Unity.Cloud.Presence.Runtime
    Syntax
    public interface INetcodeService : IParticipantProvider<INetcodeParticipant>

    Properties

    GenericMessageHandler

    Provide the GenericMessageHandler

    Declaration
    IGenericMessageHandler GenericMessageHandler { get; }
    Property Value
    Type Description
    IGenericMessageHandler

    Methods

    Join()

    Joins the runtime multiparticipant room

    Declaration
    void Join()

    Leave()

    Leaves the runtime multiparticipant room

    Declaration
    void Leave()

    Participants()

    Provide all the actives participants

    Declaration
    IEnumerable<INetcodeParticipant> Participants()
    Returns
    Type Description
    IEnumerable<INetcodeParticipant>

    Events

    ClientStarted

    Calls the methods in its invocation list when the client started

    Declaration
    event Action ClientStarted
    Event Type
    Type Description
    Action

    ClientStopped

    Calls the methods in its invocation list when the client stopped

    Declaration
    event Action ClientStopped
    Event Type
    Type Description
    Action

    ParticipantAdded

    Calls the methods in its invocation list when a participant is added

    Declaration
    event Action<INetcodeParticipant> ParticipantAdded
    Event Type
    Type Description
    Action<INetcodeParticipant>

    ParticipantRemoved

    Calls the methods in its invocation list when a participant is removed

    Declaration
    event Action<INetcodeParticipant> ParticipantRemoved
    Event Type
    Type Description
    Action<INetcodeParticipant>

    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