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 active afflictions.
  • Status Effect UI: Displays information about a particular affliction. 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 you to filter which status effects to display: Negative, Positive, Neutral, or any combination of them.

The Show Hidden toggle determines whether the status effects that have the Is Hidden option enabled are displayed or not.

Container and Prefab Status Effect are the most important ones: For each affliction 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, a Status Effect UI component, which communicates with the Status Effect List UI which affliction 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, it's the Status Effect List UI component that feeds it the target and concrete affliction.

All fields are optional and automatically update the values according to changes sent by the parent component. Besides the name, description, icon and color of the affliction, it can display the number of active stacks (Count), the Remaining Time (using the Format field) and the remaining time as a fill ratio using the Image Fill or Scale X/Scale Y fields.