Can't make object active?

I’m writing a switch weapon script that takes a player’s weapon and makes it active (with weapon1.SetActiveRecursively(true):wink: 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?

Please include the relevant code. This will make it easier to see what the problem is.

You can’t make an actual prefab active; you should be working with an instance of the prefab instead.

–Eric

Great thanks