[solved] FixedUpdate() not being called on child object

[2018.3.311f1]

I have a script that is attached to an object and to a child object.

The FixedUpdate() callback is called on the parent object but not on the child object.

Both objects are active although the child object is created at runtime and has been set to inactive at some point and then made active again.

Any thoughts?

How did you test that it does not get called? Do you print a Debug.Log()? Are you sure that the component, its object and all its parents are active, which is required for monobehavior functions to be called?

OK, thanks I found that problem.

The child object was getting deactivated as apart of a mass deactivation each physics frame, then after certain conditions being met some children were activated again… but the activation was was too late for the fixedUpdate to get called…

1 Like