Class ContentSelection
Namespace: Unity.DedicatedServer
Syntax
public static class ContentSelection
Properties
AutomaticSelection
A reference to the AutomaticSelectionOptions for the project.
Declaration
public static ref AutomaticSelectionOptions AutomaticSelection { get; }
Property Value
Type | Description |
---|---|
AutomaticSelectionOptions |
Methods
GetInheritMultiplayerTarget(Component)
Gets the final multiplayer target for the Component, considering the target of its parents.
Declaration
public static MultiplayerTarget GetInheritMultiplayerTarget(Component component)
Parameters
Type | Name | Description |
---|---|---|
Component | component |
Returns
Type | Description |
---|---|
MultiplayerTarget | Returns the multiplayer target. |
GetInheritMultiplayerTarget(GameObject)
Gets the final multiplayer target for the Game Object, considering the target of its parents.
Declaration
public static MultiplayerTarget GetInheritMultiplayerTarget(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject |
Returns
Type | Description |
---|---|
MultiplayerTarget | Returns the multiplayer target. |
GetMultiplayerTarget(Component)
Gets the multiplayer target for the Component.
Declaration
public static MultiplayerTarget GetMultiplayerTarget(Component component)
Parameters
Type | Name | Description |
---|---|---|
Component | component |
Returns
Type | Description |
---|---|
MultiplayerTarget | Returns the multiplayer target. |
GetMultiplayerTarget(GameObject)
Gets the multiplayer target for the Game Object.
Declaration
public static MultiplayerTarget GetMultiplayerTarget(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject |
Returns
Type | Description |
---|---|
MultiplayerTarget | Returns the multiplayer target. |
SetMultiplayerTarget(Component, MultiplayerTarget)
Sets the multiplayer target for the Component. The object will be included only in builds that match the target of the Object.
Declaration
public static void SetMultiplayerTarget(Component component, MultiplayerTarget target)
Parameters
Type | Name | Description |
---|---|---|
Component | component | |
MultiplayerTarget | target | The new multiplayer target. |
SetMultiplayerTarget(GameObject, MultiplayerTarget)
Sets the multiplayer target for the Game Object. The object will be included only in builds that match the target of the Object.
Declaration
public static void SetMultiplayerTarget(GameObject gameObject, MultiplayerTarget target)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | |
MultiplayerTarget | target | The new multiplayer target. |