How do you convert a UUserWidget to a SWidget? Needed for a loadingscreen.
Hey, i have been working on getting a loading screen for my game and have gotten the basic loading screen working by using this.
But i have gotten a bit confused on how you would go about setting your own custom widget to display when loading the maps. I understand that it is this variable that should be set to the wanted widget, but i don't really understand how i would convert a UserWidget that i have created to a SWidget.
Some help would be appreciated.
asked Jan 08 '16 at 04:45 PM in C++ Programming
So let me say this about UMG and Slate, UMG is UObject-compatible frontend of Slate, created to make Slate usable in blueprints (as all Slate classes are non-UObject and invisible to reflection system there for can't be used in blueprints) and all UMG widgets (with prefix U) are containers for Slate widgets (with S prefix). So slate practiclly have same widgets.... even more widgets them UMG has
To get underling SWidget of UMG widget you use this function:
Also alternatively you can easily construct Slate widgets, it really super easy which makes Slate very easy to use in C++, here examples:
But i understand you want to use UMG editor to declere Slate widgets insted ;]
Follow this question
Once you sign in you will be able to subscribe for any updates here