I'm trying to learn DOTS and I want to make like an RTS game to figure it out. I want to grab a list of all units selected by the player so that I can edit their targetPos variable.
I know it has some performance effects if I use AddComponent to add a selected tag, so should I make a singleton buffer of all selected objects? I just want to know what the best coding practice is here.