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
Syntax
[AttributeUsage(AttributeTargets.Struct)]
public class GhostSerializerAttribute : Attribute, _Attribute
Constructors
GhostSerializerAttribute(Type, UInt64)
Construct the attribute and assign the component and variant hash.
Declaration
public GhostSerializerAttribute(Type componentType, ulong variantHash)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | componentType | |
| UInt64 | variantHash |
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 |
|---|---|
| UInt64 |