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
Default
The default profile: GenericVpsProfile, a Docker image plus rendezvous on a UDP-capable VPS.
public static IHostingProfile Default { get; }
Property Value
Methods
Find(string)
The profile with id id (ignoring case), or null.
public static IHostingProfile Find(string id)
Parameters
idstring
Returns
Register(IHostingProfile)
Adds profile, replacing a registered one with the same Id.
public static void Register(IHostingProfile profile)
Parameters
profileIHostingProfile
Exceptions
- ArgumentNullException
profileis 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
idstring