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
Usage Example
Unreal Engine 5.0

Unreal Engine 5.0

title placeholder

What is a Gameplay Location?

A Gameplay Location is a structure that contains a gameplay tag and a weak pointer to an object implementing IGameplayLocationQuerier. It represents a generic 'description' to a location that can dynamically be resolved (on-demand) on the context object it carries.

You would usually resort to using Gameplay Locations when just the idea of a location means more than the actual FVector coordinate itself.

Resolving a Gameplay Location

Whether instances of a class implementing IGameplayLocationQuerier resolve a certain tag is determined at compile-time. See UGameplayLocationSettings.

You can resolve the tag of FGameplayLocation by calling Get(), which returns an FVector.
The structure also supports implicit conversion to FVector, which is the same as calling Get().

Refrain from caching the return value beyond its current scope, and always resolve this on-demand instead.

UPROPERTY

Unless you want serialization, it is not necessary to mark your Gameplay Location class member with UPROPERTY, as FGameplayLocation uses TWeakObjectPtr internally, which will always return nullptr if the object underneath was destroyed.

Unreal Engine 5.0

Unreal Engine 5.0

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