Hello Unreal community,
My name is Todor Tsekov and I am developing a game with blueprints.
I have discovered the following problem. When I click a button in a widget I want it to set a integer value. Then I want to pass taht value to a BP(BluePrint) Actor class, where depending on the value of that integer I can run a function that I have created.
Here is the Widget and the variable:
Here is the Actor class(My custom event and the BeginPlay event) :
The problem is that when the value is passed it returnts its default value(0) but I need to recieve (5 or -5). I have used boolean in the beggining but I saw that there is something more than that and I switch to integer to find the error.
As you can see I am printing my results and I can see that strange event occuring, but I have no clue what is causing it(the reference works because is passing the default value of the variable, the buttons work and change the variable, but there is something in between that I am missing).
I found this article:
where a guy has the same problem but the solution cannot fit in my case.
Please guys, help me.