Skip to main content

Bathbomb

Overview

This component's sole responsibility is to identify an entity as a bath bomb. It achieves this by adding the "bathbomb" tag to the entity upon initialization and removing it when the component is destroyed.

Dependencies & Tags

Tags:

  • bathbomb: Added to the entity when the component is attached.

Properties

PropertyTypeDefault ValueDescription
instEntityThe entity instance the component is on.A reference to the entity instance this component is attached to.

Main Functions

OnRemoveFromEntity()

  • Description: A lifecycle callback that is automatically triggered when the component is removed from the entity. It cleans up by removing the "bathbomb" tag.
  • Parameters: None.