Shouldn’t you be setting the reference before you use it? Interfaces fail quite elegantly, but that would more sense, no?
Hi, everybody.
I have a little problem. I have ‘‘Widget blueprint’’ with a function that speeds up time.
After that, the message is sent to ‘‘Interface blueprint’’. I am sure that the message is sent correctly.
I checked with ‘‘PrintString’’. When I call ‘‘Event Update Message’’ in my ‘‘GameState’’ nothing happens.
Time speed stay same. Could you help me figure out where my mistake is.
Interface blueprint
Widget blueprint
GameState
Finally i found the issue.
In my fuction after “Update Speed Muliplier”, i must Cast to GameState.
It’s stupid that I didn’t notice.
You mean like this.
I’m not very good at English and I didn’t fully understand what you meant by setting the reference before.
Not good at English? I disagree.
By setting the reference I meant assigning the result of the cast to the variable. And yes, now it looks more than fine.
Good luck with the rest!