Hello,
I’m experiencing an issue whith the UMG editor, I’m building up a button with an image that changes according to the image setted in another actor.
I’m currently using the 4.4.3 editor version, it’s all blueprinted.
The brushes made for this task are setted like this:
The texture is setted as 512x512, no alpha compression and grayscale.
STR:
- Create a new Widget Blueprint
- Create a Button
- In the Button layout section, set it to the center and offset it to this value: 0.0, 0.0, 64.0, 64.0
- Add an Image to this button
- In the Image layout section, set it to fill both horizontally and vertically and in the padding section put this value: 1.1
- Now let’s add a function to change this image during the game, click on the image widget and in the appearence section bind a new binding to the image
- Add a new local variable of the type SlateBrushAsset
- Copy this composition:
- Compile it and save, if you try to go back to the designer section the editor will crash, befor doing that try to run the game.
Note that if you run the game it will work as expected:
I’m using this setup to run my inventory, it will acess the inventory items actor array and grab the information from that actor and set the image.
If the editor crashes when you go to the designer section it will be impossible to open this blueprint again.
Thank you for this wonderfull feature, I’m achieving amazing results with only blueprint scripting on my game.
I hope that you guys can fix this issue
Thanks again,
Rogério Pacini
Edit: Adding the callstack:
!Id:ee2ecbd06b9b41d42921b5ed0d483a46
Access violation - code c0000005 (first/second chance not available)
Fatal error!
UE4Editor_SlateCore + 560325 bytes
UE4Editor_Slate + 2770853 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_UMG + 478793 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_UMG + 478970 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_Slate + 2760292 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_UMGEditor + 864800 bytes
UE4Editor_UMGEditor + 865024 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_Slate + 3439052 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_Slate + 3439052 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_Slate + 2759787 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_Slate + 3439052 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 612804 bytes
UE4Editor_SlateCore + 610684 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 610383 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_SlateCore + 609823 bytes
UE4Editor_SlateCore + 612104 bytes
UE4Editor_Slate + 528273 bytes
UE4Editor_Slate + 782701 bytes
UE4Editor_Slate + 901368 bytes
UE4Editor!FEngineLoop::Tick() + 3397 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\launchengineloop.cpp:2115]
UE4Editor!GuardedMain() + 476 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\launch.cpp:133]
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.4\engine\source\runtime\launch\private\windows\launchwindows.cpp:201]
UE4Editor!__tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]