English
Appearance
Component.OnEnable()
Component
当组件被启用时调用该方法。
void
OnEnable(): void { //当组件被启用时调用该方法 Debug.log("组件被启用"); }