Method GetAllAvailableSerializationStrategiesForType
GetAllAvailableSerializationStrategiesForType(ComponentType, ulong, bool)
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 InputBufferData<T>s, they'll return the variants available to their IInputComponentData authoring struct.
Note that the number of default variants returned may not be 1 (it could be more or less).
Declaration
[BurstCompile]
public NativeList<ComponentTypeSerializationStrategy> GetAllAvailableSerializationStrategiesForType(ComponentType componentType, ulong chosenVariantHash, bool isRoot)
Parameters
Type | Name | Description |
---|---|---|
ComponentType | componentType | Type to find the variant for. |
ulong | chosenVariantHash | If set, indicates that a variant has specifically been asked for (as an override). Zero implies find default. |
bool | isRoot | True if this component is on the root entity. |
Returns
Type | Description |
---|---|
NativeList<ComponentTypeSerializationStrategy> | A list of all available variants for this |