I’m writing a switch weapon script that takes a player’s weapon and makes it active (with weapon1.SetActiveRecursively(true) when its selected and makes the other weapons inactive (with weapon1.SetActiveRecursively(false);).
Unfortunately when I switch weapons I get: "Prefab GameObject’s can not be made active! "
How do I make something active/inactive at will?