中文
Appearance
Component.OnDisable()
Component
当组件被禁用时调用该方法。
void
OnDisable(): void { //当组件被禁用时调用该方法 Debug.log("组件被禁用"); }