onUnuse(action: (obj: GameObj, id: string)=>void): KEventController

Register an event that runs when an object stops using a component.

paramaction- The function that runs when an object stops using a component.

paramunknown- The id of the component that was removed.d

returnsThe event controller.

sincev3001.1

kaplay logo

Misc

Layer