Function
onUnuse
(action: (obj: GameObj, id: string) => void): KEventControllerRegister an event that runs when an object stops using a component.
param action- The function that runs when an object stops using a component.
param unknown- The id of the component that was removed.d
returns The event controller.
since v3001.10
group Events