Version: 2021.2

MonoBehaviour.OnTransformParentChanged()

切换到手册

描述

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