Struct GhostComponentSerializerCollectionData
Ghost
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
[BurstCompile]
public struct GhostComponentSerializerCollectionData : IComponentData, IQueryTypeParameter
Methods
Name | Description |
---|---|
Add |
Used by code-generated systems and meant for internal use only. Adds a mapping from an IInputComponentData to the buffer it should use. |
Add |
Used by code-generated systems to register SerializationStrategies. Internal use only. |
Add |
Used by code-generated systems and meant for internal use only.
Adds the generated ghost serializer to Ghost |
Dispose() | Release the allocated resources used to store the ghost serializer strategies and mappings. |
Get |
Finds all available variants for a given type, applying all variant rules at once. Since multiple variants can be present for any given component there are some important use cases that need to be handled. Note that, for Input Note that the number of default variants returned may not be 1 (it could be more or less). |
Throw |
We have no idea how many code-generated types are left to be registered, so instead,
we have a flag that is set when we know ALL of them have been created.
If the user queries this collection BEFORE all queries have been created, then they'll get silent errors where GhostFields default to |
Throw |
Validation that the SourceGenerators return valid hashes for "default serializers". |
Throw |
We have no idea how many code-generated types are left to be registered, so instead,
we have a flag that is set when we know ALL of them have been created.
If the user queries this collection BEFORE all queries have been created, then they used to get silent errors where GhostFields default to |
Try |
Lookup a component type to use as a buffer for a given IInputComponentData. |
Validate() | Validate that all the serialization strategies have a valid Serializer |