Page 1 of 1

Calling NoesisNotifyPropertyChanged outside of the scope of the object does not work

Posted: 14 Jun 2023, 03:44
by mshvern23
If I have a parent actor MyActor: AActor that owns some kind of object MyObject: UObject which in turn has a UPROPERTY SomeProperty that is modified like the following:
	MyObject->SomeProperty = true;
	NoesisNotifyPropertyChanged(MyObject, "SomeProperty");
Noesis does not pick up these changes.
I can work around it by doing
...
	MyObject->SetSomeProperty(true);
...

void MyObjectClass::SetSomeProperty(bool NewValue)
{
	SomeProperty = NewValue;
	NoesisNotifyPropertyChanged(this, "SomeProperty");
}
But I would expect both to work.

Re: Calling NoesisNotifyPropertyChanged outside of the scope of the object does not work

Posted: 14 Jun 2023, 09:12
by hcpizzi
That's weird, they are used from outside when used from Blueprint (from the set with Notify nodes, for example). Let me run some tests and I'll get back to you.