docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ComponentTypeSerializationStrategy.DefaultType

    Denotes why this strategy is the default (or not). Higher value = more important.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    [Flags]
    public enum ComponentTypeSerializationStrategy.DefaultType : byte
    Remarks

    This is a flags enum, so there may be multiple reasons why a strategy is considered the default.

    Fields

    Name Description
    NotDefault

    This is not the default.

    YesAsEditorDefault

    It's an editor test variant, so we should default to it if we literally don't have any other defaults.

    YesAsIsChildDefaultingToDontSerializeVariant

    Child entities default to DontSerializeVariant.

    YesAsIsDefaultSerializerAndDefaultIsUnchanged

    The default serializer should be used. Only applicable if we're serialized. On children: This only applies if the user has set flag SendDataForChildEntity on the default serializer.

    YesAsIsFallback

    This is the default variant only because we could not find a suitable one.

    YesAsIsUserSpecifiedNewDefault

    This is the default variant selected by the user (via DefaultVariantSystemBase), and thus is higher priority than YesAsIsDefaultSerializerAndDefaultIsUnchanged.

    YesAsOnlyOneVariantBecomesDefault

    If the developer has created only 1 variant for a type, it becomes the default.

    YesViaUserSpecifiedNamedDefaultOrHash

    This is a default variant because the user has marked it as such (via a ComponentOverride). Highest priority.

    In This Article
    Back to top
    Copyright © 2025 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)