Tags and queries

Tags group nodes by meaning: Enemy, Enemy.Flying, Pickup.Coin. Add the Tags component in the Inspector or call node.AddTag from a script; find nodes with scene.WithTag.
See the query example for a scene that cycles between groups.
- Tag names A tag is segments of letters, digits and
_joined by dots. - In scripts Queries write at most
len(out)nodes and allocate nothing; size the slice once. - In Go
WithTagAllincludes disabled nodes,WithComponent(typeID, out)andInRect(rect, out)are the other queries. - Query example The original scene cycles a spotlight through enemy and pickup tags.