Skip to main content

Tags

Tag components are components with no properties. Their main usage is to uniquely identify all entities which share the same tag - for example all birds in 9. Full Example have BirdTagComponent. Entity Queries can match entities with a given tag. The tags can also be used in Neighbor Queries to filter out potential neighbors.

note

To avoid creating an authoring and a baker for each new tag, the tags marked with [SteeringEntityTag] can be added through the SteeringEntityAuthoring.

SampleEntityTag.cs
[SteeringEntityTag] // This will let the editor find this tag. 
public struct SampleEntityTagComponent : IComponentData {}