How can i acces Sceneobjects in Mecanim/Statemachinebehaviour scripts

Hi togehter,

i need to activate and deactivate gameobjects out of the Mecanim.

I use Statemachinebeviours and deactivating works fine.

If iam trying to set the gameobjects back to active simply nothing happens, the objects stay deactivated.

Anyone knows how to do this ?

Greets

As long as those objects are a child of the object with the animation, it works just fine.