Tag or Layer

I’m making a spell cast game. There will be a lot of diferent elements and enemies. One of those elements is fire. I wonder if a tag or layer shuld be used. Layers are nice but there will be a lot of diferent things for both the player and enemies. So that makes me wana use tags in my sphere colider.

Don’t wana build a system on layers and then halfway don’t have eny left.

If I use tags what are the limitations I give my self and do you have eny better solution?

Neither. I would define these with the one think you can mix and match infinitely: components.

Why would you not recmend tags?

Few reasons. One, an object can’t have more than one tag. How would you do spells that have more than one element/type using tags?

Secondly, this tag doesn’t doesn’t actually contain any information or functionality on it’s own. You can only react to the tags, not get anything out of it.

But if these elements already have all this information inside them, then you don’t care about what they are, just what they do.

ah ok.