Prefab to save active status of sub Object

I’d like to know if there is any method to make a prefab to recognize and save the active/unactive status of an internal object.

To answer myself here, and for reference, cant be done on Unity 3.x but is an out of the box feature in 4.x.