Outdated practice, workflow has been updated.
When using a code created function call inside of a blueprint that takes in a pointer to a UBlueprint as a paramter the pin for setting the desired blueprint will cause a compile error when the editor is closed/reopened.
Manually setting the blueprint pin value will allow the blueprint to compile but will then be broken again after the next launch of the editor.
1. Open UE4Editor (code based project with starter content)
2. Add new class based on Actor (MyActor)
3. In the header for MyActor add the following:
4. In the source for MyActor add the following:
6. Create a blueprint based on MyActor (MyActorBP)
7. In the event graph of MyActorBP right click and make a call to FunctionCallTest and wire to Event Begin Play
8. Set the Blueprint pin of the function node to Blueprint_Effect_Sparks
9. Compile the blueprint
10. Save the blueprint and project
11. Close/Reopen the editor
12. Reopen MyActorBP
Blueprint won't compile and function node shows an error.
Blueprints that are compiled remain clean after relaunching the editor.
Head over to the existing Questions & Answers thread and let us know what's up.