# 5.7.3 Bug, PCG Spline Sampler

**URL:** <https://forums.unrealengine.com/t/5-7-3-bug-pcg-spline-sampler/2700374>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor\
**Created:** [February 17, 2026, 7:38pm UTC](https://forums.unrealengine.com/t/5-7-3-bug-pcg-spline-sampler/2700374 "2026-02-17T19:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxNerazim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaxNerazim](https://forums.unrealengine.com/u/MaxNerazim)\
**Post date:** [February 17, 2026, 7:38pm UTC](https://forums.unrealengine.com/t/5-7-3-bug-pcg-spline-sampler/2700374/1 "2026-02-17T19:38:37Z")

</div>

Bug introduced in 5.7.3.  
Was not bugged in 5.7.2 and never before.

## Setup

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/a/c8ae9b4ee7102e458c1ab1b77ddeae882b06c22b.png)

 ![Screenshot 2026-02-18 005621](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/2/0c2cd9133c49f3af8b699936dced400878c2a558.png)

## Results

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/1/6118eaef9f8d7fd606984f46059e49a35ba49637.jpeg)

## Expected/Previous/Correct behavior

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/9/da95a482ec9e32d7b052ace3fa031acd6022ba85.jpeg)

## Core problem

Sampled point:

- Position: Point position
- Rotation: From X axis going to next point
- Bounds Y & Z: [-1; 1]
- Bounds X **before** : [half negative Distance to **previous** point; half Distance to **next** point]
- ⚠ Bounds X **now** : [half negative Distance to **previous** point; **1**] ⚠

Main issue now:  
Point N is oriented toward Point N+1 but we only have the distance toward Point N-1

## Priority

**Critical** for us.  
Our game world is build out of PCG, we are near end of production.  
Now we **can’t edit our maps.**  
We can’t downgrade to 5.6.  
Minor hotfix version (5.7.2) are not available without recompiling the engine?

## **Solution**

I don’t have any proper solution.

Hotfix (dirty just adapted to our situation):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/d/4dd041b11e815a167391224f524a854f65305b00.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/7/367094efbf42b9da4e43a603714200ae3471f55d.png)

---

<div class="post-metadata">

**Author:** ![dasdasdawqczxca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dasdasdawqczxca](https://forums.unrealengine.com/u/dasdasdawqczxca)\
**Post date:** [March 19, 2026, 10:00am UTC](https://forums.unrealengine.com/t/5-7-3-bug-pcg-spline-sampler/2700374/2 "2026-03-19T10:00:07Z")

</div>

**The issue of abnormal interior point sampling on PCG Splines is still present in UE 5.7.4.**

 ![微信截图_20260319175404](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/4/cd4b3632e54302fdf04b2f7532e341c61bb3782e.jpeg)

---

<div class="post-metadata">

**Author:** ![AdrienLogut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adrienlogut/32/924340_2.png) [@AdrienLogut](https://forums.unrealengine.com/u/AdrienLogut)\
**Post date:** [June 9, 2026, 10:09pm UTC](https://forums.unrealengine.com/t/5-7-3-bug-pcg-spline-sampler/2700374/3 "2026-06-09T22:09:38Z")

</div>

Hi! Very sorry to only see it now.  
It seems a bad merge happened on our end when a fix was done in this file for 5.7.3 which result in the bug.  
This is resolved in 5.8, if you want to check the function code: [https://github.com/EpicGames/UnrealEngine/blob/33eb75646531cca254bfdb80326c303b3eb96072/Engine/Plugins/PCG/Source/PCG/Private/Elements/PCGSplineSampler.cpp#L228](https://github.com/EpicGames/UnrealEngine/blob/33eb75646531cca254bfdb80326c303b3eb96072/Engine/Plugins/PCG/Source/PCG/Private/Elements/PCGSplineSampler.cpp#L228)

Differences for the bad merge: [https://www.diffchecker.com/Cc0BhSw5/](https://www.diffchecker.com/Cc0BhSw5/ "https://www.diffchecker.com/Cc0BhSw5/")
