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