{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Content selection | Dedicated Server | 0.10.0
docs.unity3d.com
Search Results for

    Content selection

    In your multiplayer project, you can define which Game Objects and Components should be present/removed in the different multiplayer roles. When building or entering play mode, Unity will strip the corresponding Game Objects and Components.

    Game Objects selection from scenes.

    Allows to select which Game Objects should be present/removed in the different multiplayer roles. When building or entering play mode, Unity will automatically strip the corresponding Game Objects (and all its children).

    Workflow

    • Open a scene.
    • In the hierarchy window, select one or more Game Objects.
    • In the inspector window, find the "Multiplayer Role" field and enable or disable the options: Client, Server.

    Components selection from scenes

    Allows to select which specific Components should be present/removed from its Game Object in the different multiplayer roles. When building or entering play mode, Unity will automatically strip the corresponding Components.

    Workflow

    • Open a scene.
    • In the Hierarchy window, select one or more Game Objects.
    • In the Inspector window, in the component section, find the "Multiplayer Role" field and enable or disable the options: Client, Server.

    Selection from the Search Window

    Allows to select multiple GameObjects of Components given a search criteria.

    Workflow

    • Open a scene.
    • Open the Search Window
    • Search for the objects to select (e.g. all renderers t: Renderer)
    • Select the objects
    • In the Preview Inspector panel, find the "Multiplayer Role" field and enable or disable the options: Client, Server.

    Prefab Assets and Instances

    • Similar to Game Objects above, with one difference:
    • To modify a base Prefab Asset, either select the Prefab Asset within the Project window, or select a Prefab Instance within the Hierarchy Window and click 'Open'.

    • To modify a Prefab Instance, which is the actual GameObject in the scene, select the Prefab Instance within the Hierarchy window. The changes here will take precedence over those in the base Prefab Asset.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)