docs.unity3d.com
    Show / Hide Table of Contents

    Class ContentSelection

    Inheritance
    Object
    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.

    Back to top
    Terms of use
    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