ReynoldChen
Topic Author
Posts: 2
Joined: 18 Mar 2022, 04:52

Could UIElement created by NoesisGUI be treated as SWidget of UE4 ?

18 Mar 2022, 07:37

Dear Engineers,
We are using FGlobalTabmanager of UE4 to organize our GUI. My question is : Could UIElement created by NoesisiGUI be treated as SWidget of UE4 ?
3.jpg
1.jpg
Best Regards,
Reynold Chen
 
User avatar
hcpizzi
Site Admin
Posts: 368
Joined: 09 Feb 2012, 12:40

Re: Could UIElement created by NoesisiGUI be treated as SWidget of UE4 ?

18 Mar 2022, 14:05

Hi,

NoesisView (UNoesisBlueprint in C++) inherits from UUserWidget, which inherits from UWidget. You can use

TSharedRef<SWidget> UWidget::TakeWidget()

to get an SWidget from a UWidget. However, I'm not sure this approach is supported by Unreal. Slate is a lower level layer than UMG. I gues that, at the very least, you'll need to make sure the NoesisView objet doesn't get garbage collected.
 
ReynoldChen
Topic Author
Posts: 2
Joined: 18 Mar 2022, 04:52

Re: Could UIElement created by NoesisGUI be treated as SWidget of UE4 ?

18 Mar 2022, 14:36

Many thanks to you!
 
User avatar
hcpizzi
Site Admin
Posts: 368
Joined: 09 Feb 2012, 12:40

Re: Could UIElement created by NoesisGUI be treated as SWidget of UE4 ?

18 Mar 2022, 15:30

Just a little correction: NoesisView doesn't inherit from UUserWidget, UNoesisInstance does. UNoesisInstance is the base class of NoesisView instances.

Who is online

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