mshvern23
Topic Author
Posts: 35
Joined: 22 May 2023, 02:00

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

14 Jun 2023, 03:44

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.
 
User avatar
hcpizzi
Site Admin
Posts: 368
Joined: 09 Feb 2012, 12:40

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

14 Jun 2023, 09:12

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.

Who is online

Users browsing this forum: Bing [Bot] and 6 guests