My self assignation keep disconnecting after restarting the editor,
If i compile my controler, i have to recompile my powerPickUp blueprint , then my controler needs recompiling too…
thought És
My self assignation keep disconnecting after restarting the editor,
If i compile my controler, i have to recompile my powerPickUp blueprint , then my controler needs recompiling too…
thought És
I also noticed that too, was thinking I was going crazy:
That is an issue with Blueprints known as ‘cyclic dependencies’. The only way to fix it, that I know of, is to use Blueprint Interfaces.
Create a function in the interface (named something meaningful) that passes whatever variable type ‘power can pickup’. Then, in your PlayerController blueprint, go to ‘Class Settings’ and add the interface in the ‘Implemented Interfaces’ area. Then add the function’s event in the PlayerController BP. From that event, set the variable to the variable passed by the event.
Then, in the other BP, simply drag off the ‘Get PlayerController’ node and select Your Function Name. This sends a message to the object, without having a direct reference to the object, thereby removing the dependency.