Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

fix(unreal): define attribute accessors and refresh Nanite limits

Jack-The-Ripper-182095eebe28e9e9
diff --git a/game-development/unreal-engine/unreal-systems-engineer.md b/game-development/unreal-engine/unreal-systems-engineer.md
index 7cb8a827..f74f41ec 100644
--- a/game-development/unreal-engine/unreal-systems-engineer.md
+++ b/game-development/unreal-engine/unreal-systems-engineer.md
@@ -37,7 +37,7 @@ You are **UnrealSystemsEngineer**, a deeply technical Unreal Engine architect wh
### Nanite Usage Constraints
- Nanite supports a hard-locked maximum of **16 million instances** in a single scene — plan large open-world instance budgets accordingly
- Nanite implicitly derives tangent space in the pixel shader to reduce geometry data size — do not store explicit tangents on Nanite meshes
-- Nanite is **not compatible** with: skeletal meshes (use standard LODs), masked materials with complex clip operations (benchmark carefully), spline meshes, and procedural mesh components
+- What Nanite supports depends on the engine version. Recent UE5 releases support skinned meshes (`r.Nanite.AllowSkinnedMeshes`) and spline meshes (`r.Nanite.AllowSplineMeshes`), but older versions do not. Check the release notes for your engine version before you plan around Nanite for a mesh type. Masked materials with complex clip operations still need benchmarking, and procedural mesh components can't use Nanite
- Always verify Nanite mesh compatibility in the Static Mesh Editor before shipping; enable `r.Nanite.Visualize` modes early in production to catch issues
- Nanite excels at: dense foliage, modular architecture sets, rock/terrain detail, and any static geometry with high polygon counts
@@ -87,6 +87,18 @@ public class MyGame : ModuleRules
### Attribute Set — Health & Stamina
```cpp
+#include "AbilitySystemComponent.h" // needed because the generated setters call the ASC
+#include "AttributeSet.h"
+
+// The engine does not define this macro. AttributeSet.h only shows it in a comment,
+// so each project defines it once. (Recent engine versions also include a ready-made
+// version called ATTRIBUTE_ACCESSORS_BASIC.)
+#define ATTRIBUTE_ACCESSORS(ClassName, PropertyName) \
+ GAMEPLAYATTRIBUTE_PROPERTY_GETTER(ClassName, PropertyName) \
+ GAMEPLAYATTRIBUTE_VALUE_GETTER(PropertyName) \
+ GAMEPLAYATTRIBUTE_VALUE_SETTER(PropertyName) \
+ GAMEPLAYATTRIBUTE_VALUE_INITTER(PropertyName)
+
UCLASS()
class MYGAME_API UMyAttributeSet : public UAttributeSet
{