-
- ReynoldChen
- Posts: 2
- Joined:
Could UIElement created by NoesisGUI be treated as SWidget of UE4 ?
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 ? Best Regards,
Reynold Chen
We are using FGlobalTabmanager of UE4 to organize our GUI. My question is : Could UIElement created by NoesisiGUI be treated as SWidget of UE4 ? Best Regards,
Reynold Chen
Re: Could UIElement created by NoesisiGUI be treated as SWidget of UE4 ?
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.
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
- Posts: 2
- Joined:
Re: Could UIElement created by NoesisGUI be treated as SWidget of UE4 ?
Many thanks to you!
Re: Could UIElement created by NoesisGUI be treated as SWidget of UE4 ?
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