Skip to content

Status Effects UI

Status Effects have two components to display their information.

Status Effect List UI

  • Status Effect List UI: Gathers information about a targeted game object and manages the concrete list of activet aflictions.
  • Status Effect UI: Displays information about a particular afliction. It is spawned by the Status Effect List UI component.

Status Effect List UI

To create one, click on a game object's Add Component button and navigate to Game Creator → UI → Stats → Status Effect List UI.

Status Effect List UI

The Target field should point at the game object with a Traits component.

Types allows to filter which status effects to display: Negative, Positive, Neutral, or any combination of them.

Container and Prefab Status Effect are the most important ones: For each afliction on the targeted character, the Status Effect List UI component will spawn (or reuse) an instance of a prefab. The spawn location is as a child of the Container rect transform.

Example

So if the Player has 3 ailments: Poison, Paralyzed and Bleeding, the Status Effect List UI component will spawn 3 instances of the prefab as a child of the Container transform.

Each spawned instance must have, at the root level, the component Status Effect UI component, which communicates with the Status Effect List UI which afliction to display.

Status Effect UI

To create one, click on a game object's Add Component button and navigate to Game Creator → UI → Stats → Status Effect UI.

Status Effect UI

As can be seen, this component does not have a Target field. Instead, its the Status Effect List UI component that feeds it the target and concrete afliction.

All fields are optional and automatically update the values according to changes sent by the parent component.