Hey!👋 ubyte.dev just recently launched. It's dedicated towards Unreal Engine 5.
Portions of the materials used are trademarks and/or copyrighted works of Epic Games, Inc. All rights reserved by Epic. This material is not official and is not endorsed by Epic.
Documentation
Unreal Engine 5.0

Unreal Engine 5.0

title placeholder

About

FAgentActivityCognitionTag is a type of FGameplayTag that only allows tags mapped to the "AgentActivityCognition" base category.

Tags (or even other categories) mapped to "AgentActivityCognition" encapsulate anything from knowledge, reasoning, to memory for agents specifically. FAgentActivityCognitionTag just denotes this in a more type-safe way, which is understood by the editor when used as property or function argument.

Tips

You can use this structure instead of constantly typing out UPROPERTY of UFUNCTION metadata specifiers responsible for filtering your gameplay tag.

Functions that take FGameplayTagContainer and expect only tags mapped to "AgentActivityCognition" might benefit from helper macros that ensure/check whether this requirement is met. Below is an example:

/** Give this agent activity worker some cognition tags that are automatically removed when the current agent activity ends */
FORCEINLINE void AddScopedAgentActivityCognition(const FGameplayTagContainer& AgentActivityCognitionTags)
{
	TTS_VLOG_TAG_CATEGORY(GetVLogOwner(), LogAgentActivityWorker, Warning, TEXT("AgentActivityCognition"), AgentActivityCognitionTags);
	AddScopedAgentActivityCognitionImpl(AgentActivityCognitionTags);
	PostAgentActivityCognitionAdded(AgentActivityCognitionTags);
}

TTS_VLOG_TAG_CATEGORY is declared inside TypedTagStaticImpl, a (temporary) plugin included with GenericActivityFramework.

cross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram