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 Dont |
YesAsIsDefaultSerializerAndDefaultIsUnchanged | The default serializer should be used. Only applicable if we're serialized.
On children: This only applies if the user has set flag Send |
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 Default |
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. |