When Blueprint reads a C++ UPROPERTY that has a native UHT Getter, the Blueprint VM skips the getter and reads the raw backing field on two paths:
The value is wrong and nothing reports it. Same-type by-value reads call the getter correctly.
Reproduced in the editor on //UE5/Main (5.9.0, CL 61286245). The code is unchanged at head in //UE5/Main, //UE6/Main, Release-5.9 and Dev-Release-5.9.
This is not a regression. Native getter support (CL 19147839) arrived after the cast opcodes, and the cast opcodes and StepCompiledInRef were never updated for it.
Path 1: LWC casts
Path 2: by-ref native params
Read in code but not tested: multicast delegate out-params (ScriptCore.cpp:3400-3408) also step with nullptr and copy the raw value.
The test fixture is a UMVVMViewModelBase subclass with FieldNotify, Getter properties. Each getter returns a different value from its backing field:
An editor automation test builds and compiles Blueprint function graphs that pass each property to native UFUNCTION sinks. FKismetBytecodeDisassembler checks the bytecode.
| Path | Shipped | Cast fix | Cast fix + StepCompiledInRef fix |
|---|---|---|---|
| int32 / float / double -> same-type by-value param | getter | getter | getter |
| float -> double param (FloatToDouble) | raw | getter | getter |
| double -> float param (DoubleToFloat) | raw | getter | getter |
| The two casts read through a Target pin (EX_Context) | raw | getter | getter |
| const int32& / const float& / const double& param | raw | raw | getter |
| float -> const double& param (cast + ref) | raw | getter | getter |
| UPARAM(ref) int32&: value read by native code | raw (10) | raw | getter (20) |
| UPARAM(ref) int32&: native += 100, field after the call | 110 (written to the field, skipping any Setter) | 110 | 10 (write lost) |
| BlueprintGetter + BlueprintPure UFUNCTION (workaround), every path above | getter | getter | getter |
The two fixes are independent and were validated separately. The cast fix can land on its own while the by-ref behaviour is decided.
DEFINE_FUNCTION(UObject::execDoubleToFloatCast)
{
double SourceValue = 0.0;
if (Stack.StepAndCheckMostRecentProperty(Stack.Object, &SourceValue))
{
*reinterpret_cast<float*>(RESULT_PARAM) = static_cast<float>(SourceValue);
}
}
DEFINE_FUNCTION(UObject::execFloatToDoubleCast)
{
float SourceValue = 0.f;
if (Stack.StepAndCheckMostRecentProperty(Stack.Object, &SourceValue))
{
*reinterpret_cast<double*>(RESULT_PARAM) = static_cast<double>(SourceValue);
}
}
Found through EPS case SF 27863750 (UE 5.9 / UE5-Main).
, and the same for double DoubleProp (getter returns 2) and int32 IntProp = 99 (getter returns 120).
Expected: every sink receives the getter value: 2, 2, 2, 120.
Actual: RecordDouble gets -33 (FloatToDouble), RecordFloat gets -33 (DoubleToFloat), RecordFloatRef gets -33 (const-ref), RecordInt gets 120.
Reproduced in the editor (Development, Win64) on //UE5/Main 5.9.0 CL 61286245, 100%. An automated harness (editor automation test, EPS.GetterCast.*) is available on request.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-419727 in the post.
| 0 |
| Component | UE - Framework - Blueprint Runtime |
|---|---|
| Affects Versions | 5.9 |
| Created | Dec 3, 2026 |
|---|---|
| Updated | Dec 4, 2026 |