Class HostingProfiles

Namespace
Unity.Multiplayer.Core

The hosting profiles a build can choose from.

public static class HostingProfiles
Inheritance
HostingProfiles
Inherited Members

Properties

All

Every registered profile, the built-in ones first.

public static IReadOnlyList<IHostingProfile> All { get; }

Property Value

IReadOnlyList<IHostingProfile>

Default

The default profile: GenericVpsProfile, a Docker image plus rendezvous on a UDP-capable VPS.

public static IHostingProfile Default { get; }

Property Value

IHostingProfile

Methods

Find(string)

The profile with id id (ignoring case), or null.

public static IHostingProfile Find(string id)

Parameters

id string

Returns

IHostingProfile

Register(IHostingProfile)

Adds profile, replacing a registered one with the same Id.

public static void Register(IHostingProfile profile)

Parameters

profile IHostingProfile

Exceptions

ArgumentNullException

profile is null.

ArgumentException

Its id is not a safe file name.

Unregister(string)

Removes the profile with id id. The default profile stays. True when one was removed.

public static bool Unregister(string id)

Parameters

id string

Returns

bool