samuelhely
(samuelhely)
October 19, 2015, 3:04pm
1
Hello everyone,
I’ve been following the slate tutorial in wiki.
After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
Reading time: 1 mins 🕑
Likes: 14 ❤
After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
Reading time: 1 mins 🕑
Likes: 14 ❤
But when I add this line
MenuStyle = &MenuStyles::Get().GetWidgetStyle<FGlobalStyle>("Global");
in my project and press play the editor crash. My code is practically the same as the tutorial.
The crash reporter window says:
“Assertion failed: IsValid() [File:C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 697]”
There is no build errors in Visual Studio, I believe that’s something with the pointers.
In Diagnostics.txt says ‘Source context from “menututorial/source/menututorial/menustyles.cpp”’
Diagnostics
Can anyone help me?
Sorry for my English
Thanks!
Puca21
(Puca21)
February 22, 2016, 6:12pm
2
I have the exact same problem as this. Did you get it fixed by any chance?
samuelhely
(samuelhely)
February 23, 2016, 9:04pm
3
I dont remember how I got it fixed, it just started working again. I remember changing something inside the GameMode. If you’re doing the same tutorial, download the finished project and take a look in the GameMode code, because is not the same like the tutorial.
Bino
(Bino)
February 23, 2016, 9:13pm
4
Quickly going through that tutorial. Did you call Initialize first? FMenuStyles::Initialize();