The UI is broken and I did nothing not sure what happened. Is this a bug?
if you need to see the code please reply back.
The UI is broken and I did nothing not sure what happened. Is this a bug?
if you need to see the code please reply back.
Huh very weird I deleted the saved folder and it was fixed until it crashed and it was the save system
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000001c0
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll
it’s broken again
I watched the video, when u clicked “Start”, it started to stopped working.
Then it must somewhere in your code that related to save game and game menu.
Maybe u created a bool to check if the game menu is shown or not, if the bool is false, then the menu should be hidden, but it is shown, so the button is not working.
it is a null pointer… use IsValid function to check your variables
When I exported the game it worked fine
I made a check that makes sure that if the bool is false it removes from parent
Belive me… somewhere you are reading or writing a null pointer
and probably it is there…
use IsValid()
I’m still learning UE5 so not sure how to use IsValid()
when someone did the work for you XD
how do you find the null pointer with IsValid?
Blueprint has a node, same name, works exactly the same lake this in C++.
Example:
if (!IsValid(Controller))
{
return false;
}
The controller es a pointer for example… you must check all variales pass as references.
yes!! you got it!!
If you read o write a null pointer you will get a crash… that is the point…
is like so… you want read a book but there is no book XD (The book does not exist)
what about the object?
Do you mean this? hahahha… what a confusión!!
No… look… it was jast an example…
You don’t need check the controller if you are not using it…
you must check your widget button… i think your problem is there
Anyway… type GetController and you get it
so I made a change to the code instead of remove from parent it’s now remove all widgets.
-Try don’t to use tick event… it is too heavy…
-if the button is fine then must be other variable (you must find it).
-Check the variables just before use it (in the same line)
-Don’t try to use the widgets after destroy it… that is
or
After destroy, they are null pointers.
You must create they again to used it
It works fine now