Struct SortingGroup
This is a flag component that marks the start of a sorting group in a hierarchy. You only need to add this component to the head node (entity) in a group, but that entity must also have a Transform component.
Sorting groups allow you to sort the group head's descendants indepenently. Whatever sorting you apply to the overall hierarchy also happens locally within the group.
Namespace: Unity.Tiny.Core2D
Syntax
public struct SortingGroup : IComponentData