Class GhostSerializerAttribute
For internal use only. Markup for the generate component/buffer code-generated serializer, added automatically by the code-generation system.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[AttributeUsage(AttributeTargets.Struct)]
public class GhostSerializerAttribute : Attribute
Constructors
GhostSerializerAttribute(Type, ulong)
Construct the attribute and assign the component and variant hash.
Declaration
public GhostSerializerAttribute(Type componentType, ulong variantHash)
Parameters
Fields
ComponentType
The component type this serializer is for.
Declaration
public readonly Type ComponentType
Field Value
Type | Description |
---|---|
Type |
VariantHash
The calculated variant hash for this serializer. If the serialization is generated from the component type declaration, this field is 0.
Declaration
public readonly ulong VariantHash
Field Value
Type | Description |
---|---|
ulong |