{!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} Method BuildProfiles | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BuildProfiles

    BuildProfiles(List<SimulatorPreset>, bool, string, int, int, int, string)

    Builds sub-profiles for your profile. E.g. 4 regional options for your custom profile.

    Declaration
    public static void BuildProfiles(List<SimulatorPreset> list, bool showRegional, string name, int packetDelayMs, int packetJitterMs, int packetLossPercent, string tooltip)
    Parameters
    Type Name Description
    List<SimulatorPreset> list

    To append to.

    bool showRegional

    False for any profiles that are such poor quality, that you don't even want to allow users to select regional servers (as it would be pointless, and give the wrong impression).

    string name

    Name of profile. Include a forward slash if you want sub-profiles to be in a sub-menu.

    int packetDelayMs

    Note that profiles add delay on top.

    int packetJitterMs

    Note that profiles add delay on top.

    int packetLossPercent

    Note that profiles add delay on top.

    string tooltip

    Note that profiles add delay on top.

    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)