Version: 2021.3

MonoBehaviour.OnTransformParentChanged()

切换到手册

描述

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