I have a blueprint with 3d widget, that has two text blocks. I want first one to show at start, and second after i push a button. I have tried alot of different ways, but none works. For now i am furios, because when i call set visibility in the same event as creation it works, but when i call it from second event it gives “tried accessing none” error, what the hell, even if i set variable to reference this textblock, even if i am creating widget with just text to put it into said text block. Am i missing something?
Take a screenshot from where you are calling your custom events. Can’t really say what is going wrong without more information
i call it after creation like this
i tried to call PrintNext from widget button but it does not matter
Can you post full screen shots of both these blueprints?
I’m still not sure what’s causing the problem. I want to see the full execution flow if possible.
Yes. The very core of how referencing works:
You can’t succesfully run the bottom bit unless the top bit has run first. Beside that, we can’t see anything else bar this tiny snippet - and it already raises concerns. No clue what else is going on elsewhere.
I want first one to show at start, and second after i push a button.
- why not manually place 2 text blocks and collapse one → show it on button click
- or simply update the same text block with new text
Pretty confusing overall regarding what is needed, though.
first one is Event Construct, i assume it happens when i create widget
second one happens when user presses button, so anyway after the first one is done
i tried to collapse and then reveal, got same error
How, when and where do you call this:
This is all strange because what you say does not align with you show:
I have a blueprint with 3d widget, that has two text blocks
If you have 2 text blocks, what is the user widget
creation for in the first place? Do note that we know absolutely nothing about what you’re making. To us it’s all abstract and messy.
accessing none
What is the actual error?
sorry, thats leftovers from dynamic titles that were spawned(widget with just text) into widget depending on object clicked. I will provide screens later, i had to drop this titles for now(this is not personal project, i am on deadline)