Component:removed
Callback for when the Component is removed or replaced in an Entity.
Callback for when the Component is removed or replaced in an Entity.
component:removed( replaced )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
replaced |
boolean | True when the Component is being overwritten, false when it is being removed |