GameObject.active question/problem

I am doing a medical simulation where I turn some objects on and off as needed for certain effect. Mostly this is working, but I’m having problems with one thing.

In unity I have imported 2 hands (animated) duplicated them, turned animation off for duplicates and renamed them. I made a reference to the duplicate hand, when I try to do:

pHandDL.active = false;

nothing happens.

So my question is, is there a restriction that duplicate objects cannot be disabled in this way, or do you think it’s some other problem?

Thanks!

The weird thing is I can set other attributes for the hand like rotation and position, but not set active state to false.

Actually, is it just that objects that contained bones and animation cannot be made inactive?

Every object can be made inactive. Maybe you’re not turning off the right ones, or maybe you need to use SetActiveRecursively.

–Eric

Yup, that was it. (SetActiveRecursively) I hadn’t a clue, thanks so much.