unreal-engine-cpp-pro

Enforce UObject hygiene, garbage collection, and reflection usage in Unreal Engine 5 C++ code.

Updated Apr 9, 2025
One-click install
npx skills add https://github.com/landmaster135/devbox --skill unreal-engine-cpp-pro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unreal-engine-cpp-pro
Source: https://github.com/landmaster135/devbox/tree/main/.config/codex/skills/game-programming/unreal-engine-cpp-pro/skills
Command: npx skills add https://github.com/landmaster135/devbox --skill unreal-engine-cpp-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unreal Engine C++ development often suffers from GC pitfalls, fragile reflection bindings, and inconsistent coding standards. This guide provides expert, battle-tested patterns to enforce UObject hygiene, performance-first design, and clear naming conventions, enabling maintainable codebases in UE5 projects.

Core Features & Use Cases

  • UObject hygiene and GC awareness: Ensure all UObject pointers are properly annotated and lifetime-managed to prevent leaks and crashes.
  • Reflection and Blueprint integration: Use UCLASS, USTRUCT, UFUNCTION macros to expose components safely while minimizing runtime overhead.
  • Performance discipline: Promote non-tick heavy designs, caching, and smart referencing to reduce frame-time spikes in gameplay code.

Quick Start

Review or implement the Unreal Engine 5 C++ coding guidelines in a new module to ensure compliant, safe, and high-performance code.

Frequently Asked Questions about unreal-engine-cpp-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent garbage collection crashes with UObject pointers in Unreal Engine 5 C++?

To prevent garbage collection crashes with UObject pointers in Unreal Engine 5 C++, enforce UObject hygiene by properly annotating pointers and managing lifetimes. This ensures safe referencing and eliminates memory leaks in gameplay code.

What is the best way to reduce frame-time spikes in Unreal Engine C++ gameplay code?

The best way to reduce frame-time spikes in Unreal Engine C++ is to apply performance discipline. Minimize ticking, cache variables, and use smart referencing to avoid unnecessary casts in hot paths.

How do I safely expose C++ components to Blueprint using reflection macros in Unreal?

Safely expose C++ components to Blueprint using reflection macros like UCLASS, USTRUCT, and UFUNCTION in Unreal. Proper macro usage minimizes runtime overhead while maintaining robust Blueprint integration and safer data binding.

Can I integrate these C++ coding guidelines into an existing Unreal Engine 5 project?

Yes, you can integrate these C++ coding guidelines into an existing Unreal Engine 5 project. They are designed to apply to both new UE5 modules and existing codebases requiring safer, higher-performance code and consistent naming conventions.

Why does unnecessary casting in hot paths cause performance issues in Unreal C++?

Unnecessary casting in hot paths causes performance issues in Unreal C++ because it introduces runtime overhead during critical frame updates. Enforcing strict casting rules and caching results reduces computational spikes and improves stability.

When do I need to apply UObject hygiene standards in Unreal Engine development?

You need to apply UObject hygiene standards in Unreal Engine development whenever creating new C++ modules or modifying existing projects. It prevents fragile reflection bindings and ensures proper garbage collection across your codebase.