[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FERN9AWEQZKRYZDPYVZ7CE":3,"skill-same:01M6FERN9AWEQZKRYZDPYVZ7CE":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FERN9AWEQZKRYZDPYVZ7CE","ue-procedural-generation",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fquodsoler\u002Funreal-engine-skills\u002Fue-procedural-generation\u002FSKILL.md",[],[18,19,20],"generation","procedural","ue procedural generation","2026-11-10 10:12:30",false,"# ue-procedural-generation\n\nYou are an expert in Unreal Engine's procedural generation systems, including the PCG framework, ProceduralMeshComponent, instanced static meshes, noise functions, and spline-based generation.\n\n## Context Check\n\nBefore advising, read `.agents\u002Fue-project-context.md` to determine:\n- Whether the PCG plugin is enabled (plugins list)\n- Target generation type: world layout, terrain, dungeon, vegetation, runtime mesh\n- Performance constraints (mobile, console, Nanite enabled)\n- Multiplayer requirements (server authority vs. deterministic seeding)\n\n## Information Gathering\n\nAsk for clarification on:\n1. **Generation type**: world population (PCG), runtime mesh (ProceduralMeshComponent), instanced geometry (ISM\u002FHISM), or spline-driven?\n2. **Timing**: editor-time baked result or runtime dynamic generation?\n3. **Instance count**: hundreds (ISM) or tens of thousands (HISM)?\n4. **Collision**: does generated geometry need physics collision?\n5. **Determinism**: same seed must produce same result across sessions or network clients?\n\n---\n\n## 1. PCG Framework (UE 5.2+)\n\nNode-based rule-driven world generation. Operates on point clouds with transform, density, color, seed, and metadata attributes.\n\n### Plugin Setup\n\n```csharp\n\u002F\u002F Build.cs\nPublicDependencyModuleNames.Add(\"PCG\");\n```\n```json\n\u002F\u002F .uproject Plugins array\n{ \"Name\": \"PCG\", \"Enabled\": true }\n```\n\n### Core Classes\n\n| Class | Header | Purpose |\n|---|---|---|\n| `UPCGComponent` | `PCGComponent.h` | Actor component driving generation |\n| `UPCGGraph` | `PCGGraph.h` | Asset: nodes + edges |\n| `UPCGGraphInstance` | `PCGGraph.h` | Graph instance with parameter overrides |\n| `UPCGPointData` | `Data\u002FPCGPointData.h` | Point cloud between nodes |\n| `UPCGSettings` | `PCGSettings.h` | Node settings base class |\n| `UPCGBlueprintBaseElement` | `Elements\u002FBlueprint\u002FPCGBlueprintBaseElement.h` | Custom Blueprint node base |\n\n### UPCGComponent Key API (from `PCGComponent.h`)\n\n```cpp\n\u002F\u002F Assign graph (NetMulticast)\nvoid SetGraph(UPCGGraphInterface* InGraph);\n\n\u002F\u002F Trigger generation (NetMulticast, Reliable) — use for multiplayer\nvoid Generate(bool bForce);\n\n\u002F\u002F Local non-replicated generation\nvoid GenerateLocal(bool bForce);\n\n\u002F\u002F Cleanup\nvoid Cleanup(bool bRemoveComponents);\nvoid CleanupLocal(bool bRemoveComponents);\n\n\u002F\u002F Notify to re-evaluate after Blueprint property change\nvoid NotifyPropertiesChangedFromBlueprint();\n\n\u002F\u002F Read generated output\nconst FPCGDataCollection& GetGeneratedGraphOutput() const;\n```\n\nGeneration triggers (`EPCGComponentGenerationTrigger`):\n- `GenerateOnLoad` — one-shot on BeginPlay\n- `GenerateOnDemand` — explicit `Generate()` call only\n- `GenerateAtRuntime` — budget-scheduled by `UPCGSubsystem`\n\n### UPCGGraph Node API (from `PCGGraph.h`)\n\n```cpp\n\u002F\u002F Add node by settings class\nUPCGNode* AddNodeOfType(TSubclassOf\u003CUPCGSettings> InSettingsClass, UPCGSettings*& DefaultNodeSettings);\n\n\u002F\u002F Connect two nodes\nUPCGNode* AddEdge(UPCGNode* From, const FName& FromPinLabel, UPCGNode* To, const FName& ToPinLabel);\n\n\u002F\u002F Graph parameters (typed template)\ntemplate\u003Ctypename T>\nTValueOrError\u003CT, EPropertyBagResult> GetGraphParameter(const FName PropertyName) const;\n\ntemplate\u003Ctypename T>\nEPropertyBagResult SetGraphParameter(const FName PropertyName, const T& Value);\n```\n\n### Custom Blueprint PCG Node\n\nDerive from `UPCGBlueprintBaseElement`:\n\n```cpp\nUCLASS(BlueprintType, Blueprintable)\nclass UMyPCGNode : public UPCGBlueprintBaseElement\n{\n    GENERATED_BODY()\npublic:\n    UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = \"PCG|Execution\")\n    void Execute(const FPCGDataCollection& Input, FPCGDataCollection& Output);\n};\n\n\u002F\u002F In Execute:\nFRandomStream Stream = GetRandomStreamWithContext(GetContextHandle()); \u002F\u002F deterministic seed\n\nfor (const FPCGTaggedData& In : Input.GetInputsByPin(PCGPinConstants::DefaultInputLabel))\n{\n    const UPCGPointData* InPts = Cast\u003CUPCGPointData>(In.Data);\n    if (!InPts) continue;\n\n    UPCGPointData* OutPts = NewObject\u003CUPCGPointData>();\n    for (const FPCGPoint& Pt : InPts->GetPoints())\n    {\n        FPCGPoint NewPt = Pt;\n        NewPt.Density = Stream.FRandRange(0.5f, 1.0f);\n        OutPts->GetMutablePoints().Add(NewPt);\n    }\n    Output.TaggedData.Emplace_GetRef().Data = OutPts;\n}\n```\n\nKey `UPCGBlueprintBaseElement` properties:\n- `bIsCacheable = false` — when node spawns actors or components\n- `bRequiresGameThread = true` — for actor spawn, component add\n- `CustomInputPins` \u002F `CustomOutputPins` — extra typed pins\n\n### PCG Determinism\n\nPCG graphs are deterministic by default — the same seed produces identical output. Each node receives a seeded random stream via `GetRandomStreamWithContext()`. To vary output across instances, set the PCG component's `Seed` property. For multiplayer, ensure all clients use the same seed (replicate via GameState or pass as spawn parameter).\n\n```cpp\n\u002F\u002F Set PCG seed at runtime for deterministic variation\nUPCGComponent* PCG = FindComponentByClass\u003CUPCGComponent>();\nPCG->Seed = MyDeterministicSeedValue;\nPCG->Generate(); \u002F\u002F Regenerate with new seed\n```\n\n### PCG Data Types\n\n| Type | Contains | Use for |\n|---|---|---|\n| `FPCGPoint` \u002F Point Data | Position, rotation, scale, density, color | Scatter placement, foliage, instance positioning |\n| `UPCGSplineData` | Spline points + tangents | Roads, rivers, paths, boundary definitions |\n| `UPCGLandscapeData` | Height + layer weight sampling | Terrain-aware placement, biome queries |\n| `UPCGVolumeData` | 3D bounds | Volume-based filtering and generation |\n\nPoint data is the most common — most PCG nodes consume and produce point collections. Also available: `UPCGTextureData`, `UPCGPrimitiveData`, `UPCGDynamicMeshData`.\n\nSee `references\u002Fpcg-node-reference.md` for all node types, settings fields, and pin labels.\n\n---\n\n## 2. ProceduralMeshComponent\n\n```csharp\n\u002F\u002F Build.cs\nPublicDependencyModuleNames.Add(\"ProceduralMeshComponent\");\n```\n\n### Core API\n\n```cpp\n\u002F\u002F Create section: vertices, triangles (CCW = front), normals, UVs, colors, tangents\nvoid CreateMeshSection(int32 SectionIndex,\n    const TArray\u003CFVector>& Vertices, const TArray\u003Cint32>& Triangles,\n    const TArray\u003CFVector>& Normals,  const TArray\u003CFVector2D>& UV0,\n    const TArray\u003CFColor>& VertexColors, const TArray\u003CFProcMeshTangent>& Tangents,\n    bool bCreateCollision);\n\n\u002F\u002F Updates vertex positions (incl. collision if enabled). Cannot change topology.\nvoid UpdateMeshSection(int32 SectionIndex,\n    const TArray\u003CFVector>& Vertices, const TArray\u003CFVector>& Normals,\n    const TArray\u003CFVector2D>& UV0,    const TArray\u003CFColor>& VertexColors,\n    const TArray\u003CFProcMeshTangent>& Tangents);\n\nvoid ClearMeshSection(int32 SectionIndex);\nvoid ClearAllMeshSections();\nvoid SetMeshSectionVisible(int32 SectionIndex, bool bNewVisibility);\nvoid SetMaterial(int32 ElementIndex, UMaterialInterface* Material);\n```\n\n### Terrain Grid Example\n\n```cpp\nvoid ATerrainActor::Build(int32 Grid, float Cell)\n{\n    TArray\u003CFVector> Verts; TArray\u003Cint32> Tris; TArray\u003CFVector> Norms;\n    TArray\u003CFVector2D> UVs; TArray\u003CFColor> Colors; TArray\u003CFProcMeshTangent> Tangs;\n\n    for (int32 Y = 0; Y \u003C= Grid; Y++)\n    for (int32 X = 0; X \u003C= Grid; X++)\n    {\n        float Z = SampleOctaveNoise(X * Cell, Y * Cell, 4, 0.5f, 2.f, 80.f);\n        Verts.Add(FVector(X * Cell, Y * Cell, Z));\n        Norms.Add(FVector::UpVector);\n        UVs.Add(FVector2D((float)X \u002F Grid, (float)Y \u002F Grid));\n    }\n    for (int32 Y = 0; Y \u003C Grid; Y++)\n    for (int32 X = 0; X \u003C Grid; X++)\n    {\n        int32 BL = Y*(Grid+1)+X, BR=BL+1, TL=BL+(Grid+1), TR=TL+1;\n        Tris.Add(BL); Tris.Add(TL); Tris.Add(TR);\n        Tris.Add(BL); Tris.Add(TR); Tris.Add(BR);\n    }\n    ProceduralMesh->CreateMeshSection(0, Verts, Tris, Norms,\n                                       UVs, Colors, Tangs, \u002F*bCreateCollision=*\u002Ftrue);\n}\n```\n\n### Performance Notes\n\n- One draw call per `CreateMeshSection`. Keep vertex count \u003C 65K per section.\n- `UpdateMeshSection` updates vertex positions and collision (if enabled) but cannot change topology — call `CreateMeshSection` for new triangles.\n- ProceduralMesh does **not** support Nanite.\n- Compute vertex data on background thread; call `CreateMeshSection` on game thread only.\n\n### Async Mesh Generation\n\nGenerate vertices on a background thread, then apply on the game thread:\n\n```cpp\n\u002F\u002F Background task — compute vertices\nclass FMeshGenTask : public FNonAbandonableTask\n{\npublic:\n    TArray\u003CFVector> Vertices;\n    TArray\u003Cint32> Triangles;\n    void DoWork() { \u002F* Marching cubes, noise sampling, etc. *\u002F }\n    FORCEINLINE TStatId GetStatId() const { RETURN_QUICK_DECLARE_CYCLE_STAT(FMeshGenTask, STATGROUP_ThreadPoolAsyncTasks); }\n};\n\n\u002F\u002F Launch and poll\n\u002F\u002F Use FAsyncTask (not FAutoDeleteAsyncTask) when polling IsDone() is needed.\n\u002F\u002F FAutoDeleteAsyncTask deletes itself on completion — calling IsDone() afterward is a use-after-free.\nauto* Task = new FAsyncTask\u003CFMeshGenTask>();\nTask->StartBackgroundTask();\n\u002F\u002F Poll safely: if (Task->IsDone()) { \u002F* use Task->GetTask().Vertices *\u002F delete Task; }\n```\n\n### Collision on Procedural Meshes\n\nSet `UProceduralMeshComponent::bUseComplexAsSimpleCollision = true` to use the rendered triangles directly for collision. This is accurate but expensive — only use for static geometry. For dynamic or high-poly meshes, generate simplified convex hulls instead.\n\n---\n\n## 3. Instanced Static Meshes (ISM \u002F HISM)\n\n| Feature | ISM (`InstancedStaticMeshComponent.h`) | HISM (`HierarchicalInstancedStaticMeshComponent.h`) |\n|---|---|---|\n| Best for | \u003C 1,000 dynamic instances | > 1,000 mostly static |\n| Culling | Distance only | Hierarchical BVH + distance |\n| LOD | GPU selection | Built-in transitions |\n| Remove cost | O(n) | async BVH rebuild |\n\n### Key ISM API (from `InstancedStaticMeshComponent.h`)\n\n```cpp\nvirtual int32 AddInstance(const FTransform& T, bool bWorldSpace = false);\nvirtual TArray\u003Cint32> AddInstances(const TArray\u003CFTransform>& Ts,\n    bool bShouldReturnIndices, bool bWorldSpace = false, bool bUpdateNavigation = true);\nvirtual bool UpdateInstanceTransform(int32 Idx, const FTransform& NewT,\n    bool bWorldSpace = false, bool bMarkRenderStateDirty = false, bool bTeleport = false);\nvirtual bool BatchUpdateInstancesTransforms(int32 StartIdx, const TArray\u003CFTransform>& NewTs,\n    bool bWorldSpace = false, bool bMarkRenderStateDirty = false, bool bTeleport = false);\nbool GetInstanceTransform(int32 Idx, FTransform& OutT, bool bWorldSpace = false) const;\nvirtual bool RemoveInstance(int32 InstanceIndex);  \u002F\u002F O(n) for ISM; triggers async BVH rebuild for HISM\nvirtual void PreAllocateInstancesMemory(int32 AddedCount);\nint32 GetNumInstances() const;\n\n\u002F\u002F Per-instance custom float data (read in materials via PerInstanceCustomData)\nvirtual void SetNumCustomDataFloats(int32 N);\nvirtual bool SetCustomDataValue(int32 Idx, int32 DataIdx, float Value,\n    bool bMarkRenderStateDirty = false);\nvirtual bool SetCustomData(int32 Idx, TArrayView\u003Cconst float> Floats,\n    bool bMarkRenderStateDirty = false);\n```\n\nCulling properties: `InstanceStartCullDistance`, `InstanceEndCullDistance`, `InstanceLODDistanceScale`, `bUseGpuLodSelection`.\n\n### Vegetation Scatter (HISM + Terrain Trace)\n\n```cpp\nHISM->SetStaticMesh(TreeMesh);\nHISM->SetNumCustomDataFloats(1);\nHISM->PreAllocateInstancesMemory(Count);\nFRandomStream Rand(Seed);\nTArray\u003CFTransform> Transforms; Transforms.Reserve(Count);\n\nfor (int32 i = 0; i \u003C Count; i++)\n{\n    FVector Loc(Rand.FRandRange(Min.X, Max.X), Rand.FRandRange(Min.Y, Max.Y), 0);\n    FHitResult Hit;\n    if (GetWorld()->LineTraceSingleByChannel(Hit,\n        Loc + FVector(0,0,5000), Loc - FVector(0,0,5000), ECC_WorldStatic))\n        Loc.Z = Hit.Location.Z;\n\n    Transforms.Add(FTransform(\n        FRotator(0, Rand.FRandRange(0,360), 0), Loc,\n        FVector(Rand.FRandRange(0.8f, 1.3f))));\n}\n\nTArray\u003Cint32> Indices = HISM->AddInstances(Transforms, true, true);\nfor (int32 i = 0; i \u003C Indices.Num(); i++)\n    HISM->SetCustomDataValue(Indices[i], 0, Rand.FRand(), false);\nHISM->MarkRenderStateDirty();\n```\n\n### Foliage System\n\nThe editor's Foliage paint mode uses `AInstancedFoliageActor` which internally wraps `UHierarchicalInstancedStaticMeshComponent`. For procedural foliage at scale, use `UProceduralFoliageComponent` with `UProceduralFoliageSpawner` — it distributes foliage via simulation (species competition, shade tolerance) rather than manual painting.\n\n**Per-instance collision**: Enable `bUseDefaultCollision` on the ISM component. Each instance inherits the static mesh's collision. For custom per-instance collision shapes, use separate actors — ISM does not support unique collision per instance.\n\n**Platform limits**: HISM GPU buffer caps vary by platform (~1M on desktop, ~100K on mobile). Monitor with `stat Foliage`. Split large populations across multiple HISM components.\n\n---\n\n## 4. Noise and Math\n\n```cpp\n\u002F\u002F Built-in Perlin (all output in [-1, 1])\nfloat N1 = FMath::PerlinNoise1D(X * Freq);\nfloat N2 = FMath::PerlinNoise2D(FVector2D(X, Y) * Freq);\nfloat N3 = FMath::PerlinNoise3D(FVector(X, Y, Z) * Freq);\n\n\u002F\u002F Octave noise\nfloat OctaveNoise(float X, float Y, int32 Oct, float Persist, float Lacu, float Scale)\n{\n    float V=0, A=1, F=1.f\u002FScale, Max=0;\n    for (int32 i=0; i\u003COct; i++) {\n        V += FMath::PerlinNoise2D(FVector2D(X,Y)*F) * A;\n        Max += A; A *= Persist; F *= Lacu;\n    }\n    return V \u002F Max;\n}\n\n\u002F\u002F Seeded deterministic random\nFRandomStream Stream(Seed);\nfloat R = Stream.FRandRange(Min, Max);\nint32 I = Stream.RandRange(MinI, MaxI);\nFVector Dir = Stream.VRand();\n```\n\n**Height\u002Fdensity maps**: Sample `UTexture2D` pixel data via `FTexturePlatformData` to drive terrain height or placement density. Lock with `BulkData.Lock(LOCK_READ_ONLY)`, read, then unlock.\n\n**Poisson disc sampling** (minimum-separation scatter for natural placement) — full Bridson algorithm implementation in `references\u002Fprocedural-mesh-patterns.md`.\n\n---\n\n## 5. Spline Components\n\n### USplineComponent API (from `SplineComponent.h`)\n\n```cpp\n\u002F\u002F Build spline (always batch with bUpdateSpline=false, call UpdateSpline() once after)\nvoid AddSplinePoint(const FVector& Pos, ESplineCoordinateSpace::Type Space, bool bUpdate=true);\nvoid SetSplinePoints(const TArray\u003CFVector>& Pts, ESplineCoordinateSpace::Type Space, bool bUpdate=true);\nvoid ClearSplinePoints(bool bUpdate=true);\nvirtual void UpdateSpline();  \u002F\u002F Rebuild reparameterization table\n\n\u002F\u002F Query by arc-length distance\nFVector    GetLocationAtDistanceAlongSpline(float Dist, ESplineCoordinateSpace::Type Space) const;\nFVector    GetDirectionAtDistanceAlongSpline(float Dist, ESplineCoordinateSpace::Type Space) const;\nFVector    GetRightVectorAtDistanceAlongSpline(float Dist, ESplineCoordinateSpace::Type Space) const;\nFRotator   GetRotationAtDistanceAlongSpline(float Dist, ESplineCoordinateSpace::Type Space) const;\nFTransform GetTransformAtDistanceAlongSpline(float Dist, ESplineCoordinateSpace::Type Space, bool bUseScale=false) const;\nfloat      GetSplineLength() const;\n\n\u002F\u002F Point editing\nint32  GetNumberOfSplinePoints() const;\nvoid   SetSplinePointType(int32 Idx, ESplinePointType::Type Type, bool bUpdate=true);\nvoid   SetClosedLoop(bool bClosed, bool bUpdate=true);\nvoid   SetTangentsAtSplinePoint(int32 Idx, const FVector& Arrive, const FVector& Leave,\n           ESplineCoordinateSpace::Type Space, bool bUpdate=true);\n```\n\nPoint types: `Linear`, `Curve`, `Constant`, `CurveClamped`, `CurveCustomTangent`.\n\n`FindInputKeyClosestToWorldLocation(WorldLocation)` — returns the spline key nearest to a world position (useful for snapping actors to splines).\n\n**Runtime modification**: Call `AddSplinePoint()`, `RemoveSplinePoint()`, or `SetLocationAtSplinePoint()` then `UpdateSpline()` to rebuild. Batch modifications before calling `UpdateSpline()` — each call recalculates the entire spline.\n\n### Spline Placement Example\n\n```cpp\n\u002F\u002F Place instances evenly along spline\nfloat Len = Spline->GetSplineLength();\nfor (float D = 0.f; D \u003C= Len; D += Spacing)\n{\n    FTransform T = Spline->GetTransformAtDistanceAlongSpline(D, ESplineCoordinateSpace::World);\n    HISM->AddInstance(T, \u002F*bWorldSpace=*\u002Ftrue);\n}\n```\n\n### USplineMeshComponent (Mesh Deformation)\n\n```cpp\n#include \"Components\u002FSplineMeshComponent.h\"\nUSplineMeshComponent* SM = NewObject\u003CUSplineMeshComponent>(this);\nSM->SetStaticMesh(PipeMesh);\nSM->RegisterComponent();\n\nFVector SP, ST, EP, ET;\nSpline->GetLocationAndTangentAtSplinePoint(Seg,   SP, ST, ESplineCoordinateSpace::Local);\nSpline->GetLocationAndTangentAtSplinePoint(Seg+1, EP, ET, ESplineCoordinateSpace::Local);\nSM->SetStartAndEnd(SP, ST, EP, ET, \u002F*bUpdateMesh=*\u002Ftrue);\nSM->SetForwardAxis(ESplineMeshAxis::X);\n```\n\n---\n\n## 6. Runtime Mesh Generation Patterns\n\nSee `references\u002Fprocedural-mesh-patterns.md` for full implementations:\n- **Marching Cubes** — isosurface from 3D density scalar field\n- **Dungeon BSP** — BSP partition into rooms, L-corridor carving, tile-to-mesh\n- **L-System** — string rewriting + turtle interpreter to HISM branches\n- **Wave Function Collapse** — constraint-propagation tile grid layout\n- **Async mesh generation** — background thread vertex computation, game thread `CreateMeshSection`\n- **Spline road extrusion** — cross-section profile swept along `USplineComponent`\n\n```cpp\n\u002F\u002F Marching Cubes result → ProceduralMesh\nProceduralMesh->CreateMeshSection(0, MarchVerts, MarchTris, MarchNormals,\n    MarchUVs, {}, {}, \u002F*bCreateCollision=*\u002Ftrue);\n```\n\n---\n\n## Common Mistakes and Anti-Patterns\n\n**PCG**\n- Calling `GenerateLocal()` in `Tick` — generation is not free; use `GenerateOnDemand` and regenerate only on data change.\n- Using `GenerateLocal()` in multiplayer — it is NOT replicated; use `Generate(bForce)` (NetMulticast).\n- Heavy custom nodes with `bIsCacheable = true` — only cache if output depends solely on inputs + seed.\n- Graphs with `bIsEditorOnly = true` fail to cook into packaged builds.\n\n**ProceduralMeshComponent**\n- Passing `bCreateCollision=false` to `CreateMeshSection` — characters fall through the mesh.\n- Calling `UpdateMeshSection` expecting topology to change — vertex count must match; use `CreateMeshSection` for new triangles.\n- Using ProceduralMesh for Nanite-scale terrain — not supported; use Landscape or PCG + ISM.\n- Wrong triangle winding (CW instead of CCW) — polygons are invisible due to back-face culling.\n\n**ISM \u002F HISM**\n- Using ISM above ~500 instances — switch to HISM for BVH culling.\n- Setting `bMarkRenderStateDirty=true` on every `UpdateInstanceTransform` in a loop — only set `true` on the last call.\n- Skipping `PreAllocateInstancesMemory` before bulk add — repeated realloc degrades performance.\n\n**Splines**\n- Calling `AddSplinePoint(bUpdateSpline=true)` in a loop — rebuilds reparameterization table every call; use `false` and call `UpdateSpline()` once.\n- Using spline input key (not distance) for even spacing — key is NOT proportional to arc length.\n\n**Multiplayer**\n- Procedural content must be deterministic (same seed) or server-authoritative.\n- `GenerateLocal()` does not replicate; `Generate(bool)` is `NetMulticast, Reliable`.\n\n---\n\n## Related Skills\n\n- `ue-actor-component-architecture` — component lifecycle, registration, replication\n- `ue-physics-collision` — collision profiles, complex vs. simple on generated geometry\n- `ue-cpp-foundations` — `NewObject`, `TSubclassOf`, `TArray`, memory management\n\n## Reference Files\n\n- `references\u002Fpcg-node-reference.md` — all PCG node types, pin labels, settings fields, determinism checklist\n- `references\u002Fprocedural-mesh-patterns.md` — quad grid, marching cubes, dungeon BSP, L-system, WFC, spline road\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fquodsoler\u002Funreal-engine-skills\u002Fue-procedural-generation",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ue-procedural-generation",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ue-procedural-generation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ue-procedural-generation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fquodsoler\u002Funreal-engine-skills\u002Fue-procedural-generation\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]