Function FollowerEntity.OnDisable

OnDisable ()

Called when the component is disabled or about to be destroyed.

Private
void OnDisable ()

Called when the component is disabled or about to be destroyed.

This is also called by Unity when an undo/redo event is performed. This means that when an undo event happens the entity will get destroyed and then re-created.