Class OnboardingSectionAttribute
Onboarding section metadata to be picked up by the multiplayer center. This can only be used once per type. If you wish to make the same section appear in multiple categories/conditions, please create two types inheriting from the same base class.
Inherited Members
Namespace: Unity.Multiplayer.Center.Common
Assembly: Unity.Multiplayer.Center.Common.dll
Syntax
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
public sealed class OnboardingSectionAttribute : Attribute
Constructors
OnboardingSectionAttribute(OnboardingSectionCategory, string)
Creates a new instance of the attribute.
Declaration
public OnboardingSectionAttribute(OnboardingSectionCategory category, string id)
Parameters
Type | Name | Description |
---|---|---|
Onboarding |
category | The section category. |
string | id | The identifier. |
Fields
Id
The id of that section (defines uniqueness and whether priority should be used)
Declaration
public readonly string Id
Field Value
Type | Description |
---|---|
string |
Properties
Category
The UI category the section will fall into
Declaration
public OnboardingSectionCategory Category { get; }
Property Value
Type | Description |
---|---|
Onboarding |
DisplayCondition
Optional: condition to display the section. By default, if the type exists in the project, the section is shown.
Declaration
public DisplayCondition DisplayCondition { get; set; }
Property Value
Type | Description |
---|---|
Display |
HostingModelDependency
Optional: dependency on a certain hosting model choice.
Declaration
public SelectedSolutionsData.HostingModel HostingModelDependency { get; set; }
Property Value
Type | Description |
---|---|
Selected |
NetcodeDependency
Optional: dependency on a certain netcode choice.
Declaration
public SelectedSolutionsData.NetcodeSolution NetcodeDependency { get; set; }
Property Value
Type | Description |
---|---|
Selected |
Order
Optional: this is the order in which the sections will be displayed in the UI within the section (the higher, the further down)
Declaration
public int Order { get; set; }
Property Value
Type | Description |
---|---|
int |
Priority
Optional: priority in case several onboarding sections are defined for the same package/id. Use-case: new version of a package needs a different onboarding and overrides what we ship with the Multiplayer Center.
Declaration
public int Priority { get; set; }
Property Value
Type | Description |
---|---|
int |
TargetPackageId
Optional: the package Id that this section is related to, e.g. "com.unity.transport"
Declaration
public string TargetPackageId { get; set; }
Property Value
Type | Description |
---|---|
string |