componentRemoved method

  1. @protected
  2. @mustCallSuper
void componentRemoved(
  1. GameObject object,
  2. Component component
)

Called when component leaves the world, for each componentAdded had: it's removed from object, or object is destroyed (then GameObject.isDestroyed is true, and it's called for each of its components, after every onDestroy). The component is Component.isRemoved by then.

Implementation

@protected
@mustCallSuper
void componentRemoved(GameObject object, Component component) {}