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

    Show / Hide Table of Contents

    Method GetAllAvailableSerializationStrategiesForType

    GetAllAvailableSerializationStrategiesForType(ComponentType, ulong, bool)

    Finds all available variants for a given type, applying all variant rules at once.

    Since multiple variants can be present for any given component there are some important use cases that need to be handled.

    Note that, for InputBufferData<T>s, they'll return the variants available to their IInputComponentData authoring struct.

    Note that the number of default variants returned may not be 1 (it could be more or less).

    Declaration
    [BurstCompile]
    public NativeList<ComponentTypeSerializationStrategy> GetAllAvailableSerializationStrategiesForType(ComponentType componentType, ulong chosenVariantHash, bool isRoot)
    Parameters
    Type Name Description
    ComponentType componentType

    Type to find the variant for.

    ulong chosenVariantHash

    If set, indicates that a variant has specifically been asked for (as an override). Zero implies find default.

    bool isRoot

    True if this component is on the root entity.

    Returns
    Type Description
    NativeList<ComponentTypeSerializationStrategy>

    A list of all available variants for this componentType.

    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)