This version of Unity is unsupported.

MonoBehaviour.OnTransformParentChanged()

Switch to Manual

Description

This function is called when a direct or indirect parent of the transform of the GameObject has changed.