Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides Unreal Engine 5 C++ development: UObject garbage collection, reflection macros, tick/casting performance, and coding conventions.
91% 95%+5 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
I have an actor pointer `AActor* TargetActor` that may implement the `UInteractable` interface. I want to trigger its interaction event from C++ safely without direct hard casting. How should this call be dispatched?
Recommends dispatching using IInteractable::Execute_OnInteract.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
This skill provides expert-level guidelines for developing with Unreal Engine 5 using C++. It focuses on writing robust, performant, and standard-compliant code.
Use this skill when:
Do not use this skill when:
UObject & Garbage Collection:
UPROPERTY() for UObject* member variables to ensure they are tracked by the Garbage Collector (GC).TStrongObjectPtr<> cautiously for a scoped strong reference outside a reflected UObject graph; do not routinely root objects manually. Manual AddToRoot() requires deliberate paired RemoveFromRoot() lifecycle management.IsValid() check vs nullptr. IsValid() handles pending kill state safely.Unreal Reflection System:
UCLASS(), USTRUCT(), UENUM(), UFUNCTION() to expose types to the reflection system and Blueprints.BlueprintReadWrite when possible; prefer BlueprintReadOnly for state that shouldn't be trampled by logic in UI/Level BPs.Performance First:
bCanEverTick = false) by default. Only enable it if absolutely necessary. Prefer timers (GetWorldTimerManager()) or event-driven logic.Cast<T>() in hot loops. Cache references in BeginPlay.F structs for data-heavy, non-UObject types to reduce overhead.Follow Epic Games' coding standard:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.