SetActiveRecursively, but not on certain objects

I’m using SetActiveRecursively to enable/disable levels. The problem is that I need certain objects to remain disabled.

For example, NPC facial expressions are done by enabling/disabling different gameobjects, but SetActiveRecursively will enable every expression.

I’ve split the levels into static/persistent objects, and only the static ones are enabled/disabled, but I don’t want the NPC in persistent.

Do I have to have a script on every object with a simple boolean, then check it OnEnable?

You could try to parent them to a game object
and set it back to false with SetActiveRecursively(false) just after the SetActiveRecursively(true) call.