This page lists the built-in functions exposed by UJ2TagBehaviorFunctionLibrary. Pure functions are expressions. Callable functions are actions.
Custom behavior functions are documented in Behavior Public API.
| Function | Output | Purpose |
|---|
IsObjectValid | Result bool | Returns true when the object reference is valid. |
IsObjectOfClass | Result bool | Checks whether an object is of a class; can require exact class match. |
ObjectEquals | Result bool | Checks whether two object references point to the same object. |
ObjectNotEquals | Result bool | Checks whether two object references are different. |
GetObjectName | Result string | Returns the internal object name, or empty string for invalid objects. |
GetObjectDisplayName | Result string | Returns the Actor label or display-safe object name. |
GetObjectClass | Result class | Returns the object’s class, or none for invalid objects. |
ObjectIsActor | Result bool | Returns true when the object is an Actor. |
ObjectIsComponent | Result bool | Returns true when the object is an Actor Component. |
ObjectIsAsset | Result bool | Returns true when the object is an asset. |
| Function | Output | Purpose |
|---|
ActorHasComponent | Result bool | Checks whether an Actor has a component of the given class. |
GetOwnerActor | Result Actor | Returns the owner Actor for a component. |
| Function | Output | Purpose |
|---|
ObjectHasTag | Result bool | Checks exact tag or child tag match on an Actor or Component. |
ObjectHasExactTag | Result bool | Checks only exact tag name match. |
ObjectHasTagMatchingParent | Result bool | Checks whether any object tag is equal to or below a parent tag. |
ObjectHasAnyTag | Result bool | Checks whether the object has at least one comma-separated tag. |
ObjectHasAllTags | Result bool | Checks whether the object has every comma-separated tag. |
ObjectHasNoneOfTags | Result bool | Checks whether the object has none of the comma-separated tags. |
TagEquals | Result bool | Compares two normalized tag names for equality. |
TagNotEquals | Result bool | Compares two normalized tag names for inequality. |
TagMatchesParent | Result bool | Checks whether a tag equals or is below a parent tag path. |
GetTagParent | Result name | Returns the direct parent tag path. |
GetParentTags | Result string | Returns all parent tag paths as comma-separated text. |
GetTagRoot | Result string | Returns the root segment of a tag path. |
GetTagLeafName | Result string | Returns the final segment of a tag path. |
| Function | Output | Purpose |
|---|
BoolEquals | Result bool | Returns true when both boolean values are equal. |
BoolNotEquals | Result bool | Returns true when both boolean values are different. |
| Function | Output | Purpose |
|---|
IntEquals | Result bool | A == B. |
IntNotEquals | Result bool | A != B. |
IntGreaterThan | Result bool | A > B. |
IntGreaterOrEqual | Result bool | A >= B. |
IntLessThan | Result bool | A < B. |
IntLessOrEqual | Result bool | A <= B. |
| Function | Output | Purpose |
|---|
FloatEquals | Result bool | Returns true when two floats are nearly equal within tolerance. |
FloatNotEquals | Result bool | Returns true when two floats differ by more than tolerance. |
FloatGreaterThan | Result bool | A > B. |
FloatGreaterOrEqual | Result bool | A >= B. |
FloatLessThan | Result bool | A < B. |
FloatLessOrEqual | Result bool | A <= B. |
| Function | Output | Purpose |
|---|
StringEquals | Result bool | Compares strings for equality; optional case-insensitive mode. |
StringNotEquals | Result bool | Compares strings for inequality; optional case-insensitive mode. |
StringContains | Result bool | Checks whether a string contains a search value. |
StringStartsWith | Result bool | Checks whether a string starts with a prefix. |
StringEndsWith | Result bool | Checks whether a string ends with a suffix. |
StringIsEmpty | Result bool | Checks whether trimmed text is empty. |
StringMatchesWildcard | Result bool | Checks a string against a wildcard pattern. |
| Function | Output | Purpose |
|---|
ClassEquals | Result bool | Checks whether two class references are the same. |
ClassNotEquals | Result bool | Checks whether two class references are different. |
ClassIsChildOf | Result bool | Checks whether a class inherits from a parent class. |
| Function | Output | Purpose |
|---|
IsEventType | Result bool | Checks whether the active behavior was triggered by the selected event type. |
| Function | Output | Purpose |
|---|
PrintDebugMessage | Result bool | Logs a debug message and prints on-screen debug output. |
LogMessage | Result bool | Writes a behavior log message with Info, Warning, or Error severity. |
| Function | Output | Purpose |
|---|
CreateIssueMessage | Result bool | Creates a structured behavior issue message; can suppress duplicates with OnlyOnce. |
ClearIssueMessages | Result int | Clears remembered issue messages and returns the number removed. |
| Function | Output | Purpose |
|---|
AddTagToObject | Result bool | Adds a tag to an Actor or Actor Component. |
RemoveTagFromObject | Result bool | Removes an exact tag from an Actor or Actor Component. |
ClearTagsFromObject | Result int | Clears all tags from an Actor or Actor Component and returns removed count. |
ReplaceTagOnObject | Result bool | Replaces an exact old tag with a new tag. |
AddTagsToObject | Result int | Adds comma-separated tags and returns added count. |
RemoveTagsFromObject | Result int | Removes comma-separated tags and returns removed count. |
| Function | Output | Purpose |
|---|
AddComponentToActor | Result bool | Adds a component of the requested class to an Actor; can skip if one already exists. |
RemoveComponentFromActor | Result bool | Removes the first matching component from an Actor. |
| Function | Output | Purpose |
|---|
ExecuteBehavior | Result bool | Executes a referenced behavior asset or section with an optional target object context. |
StopBehavior | Result bool | Requests that the current behavior stop after this action. |
Custom functions follow the same split:
- pure functions become expression functions
- non-pure callable functions become action functions
- supported parameter and output types are listed in Input and Output Types