Certain values, when changed in code, are not updated in a hot reload. For example, changing the Target Arm Length of a spring arm component will updated after hot reload, but changing the Scale does not update.
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, meta = (AllowPrivateAccess = true), Category = test)
USpringArmComponent* MyArm;
MyArm = CreateDefaultSubobject<USpringArmComponent>(TEXT("MyArm"));
MyArm->SetRelativeScale3D(FVector(0.9, 0.9, 0.9));
MyArm->TargetArmLength = 900;
Result:
TargetArmLength is set to 500 after hot reload but Scale is still set to (0.9, 0.9, 0.9)
Expected:
Settings behavior is consistent after hot reload.
Head over to the existing Questions & Answers thread and let us know what's up.
8 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.15.1 |
Created | Apr 11, 2017 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |
5830 - Algorithman |