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

    Show / Hide Table of Contents

    Method GetNetcodeTarget

    GetNetcodeTarget<T>(Baker<T>, bool)

    The current conversion target to use for the baking.

    Declaration
    public static NetcodeConversionTarget GetNetcodeTarget<T>(this Baker<T> self, bool isPrefab) where T : Component
    Parameters
    Type Name Description
    Baker<T> self

    an instance of the baker

    bool isPrefab

    state is we are converting a prefab or not

    Returns
    Type Description
    NetcodeConversionTarget
    Type Parameters
    Name Description
    T
    Remarks

    In the editor, if a NetCodeConversionSettings is present in the build configuration used for conversion, the target specified by the build component is used.

    Otherwise, the conversion target will be determined by the destination world for runtime conversion, and fallback to always be ClientAndServer is nothing apply or for prefabs.

    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)