Some bindings fail in packaged builds (UE 5.4.3)
Posted: 18 Jul 2024, 11:44
Hi there!
I've noticed that some of my properties are not being bound correctly (always the same properties) in packaged builds, even though editor builds seem to be completely fine. The data context is a UNoesisInstance and I set the XAML inside the constructor like so:
These properties hold valid initial values and I update them inside NativeConstruct:
I'm quite confounded as it is, and any help is very much appreciated :)
Editor (Development-Editor): Packaged (Development-Game): XAML snippet of a property that can't be bound in packaged builds:
I've noticed that some of my properties are not being bound correctly (always the same properties) in packaged builds, even though editor builds seem to be completely fine. The data context is a UNoesisInstance and I set the XAML inside the constructor like so:
Code: Select all
UOptionsMenu::UOptionsMenu() {
BaseXaml = LoadObject<UNoesisXaml>(nullptr, TEXT("/Path/To/My/XAML"));
Code: Select all
void UOptionsMenu::NativeConstruct() {
Super::NativeConstruct();
settings = UUserSettings::GetTotSettings();
brightness = settings->Brightness;
NoesisNotifyPropertyChanged(this, "brightness");
Editor (Development-Editor): Packaged (Development-Game): XAML snippet of a property that can't be bound in packaged builds: