Skip to content

SeinARTS Tag Library

Class · USeinTagBPFL : UBlueprintFunctionLibrary

#include "Lib/SeinTagBPFL.h"

deterministic: safe in simulation code

Blueprint nodes for the tags on a simulation entity: test them, edit the entity’s base tags, or grant tags that are counted and released one at a time.

Whether the entity has this tag or a child tag.

static bool SeinHasTag(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Tag);

True when the entity has at least one of Tags, or a child of one. An empty list returns false.

static bool SeinHasAnyTag(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTagContainer Tags);

True when the entity has every tag in Tags, or a child of each. An empty list returns true.

static bool SeinHasAllTags(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTagContainer Tags);

Adds Tag to the entity’s base tags, the tags it is authored with, and grants it. Returns false if the tag is already a base tag or the entity is not valid. Use Grant Tag for a temporary tag that should not join the base set.

static bool SeinAddBaseTag(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Tag);

Removes Tag from the entity’s base tags. Returns false if it was not a base tag. If another source also granted the tag, the entity keeps it.

static bool SeinRemoveBaseTag(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Tag);

Sets the entity’s base tags to exactly this list: base tags not in it are removed and new ones are added. Tags granted by other sources are not touched.

static void SeinReplaceBaseTags(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTagContainer NewBaseTags);

Adds one count of Tag to the entity without changing its base tags. The entity keeps the tag until every grant has been released with Ungrant Tag. Use it for tags that an ability, effect or component applies temporarily.

static void SeinGrantTag(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Tag);

Release one matching grant previously acquired by this logic. This does not identify a source; an unmatched release can consume another source’s grant.

static void SeinUngrantTag(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Tag);