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.
Workaround:
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:
UFUNCTION(BlueprintCallable, Category = test) void FunctionCallTest(UBlueprint* blueprint);
4. In the source for MyActor add the following:
void AMyActor::FunctionCallTest(UBlueprint* blueprint) { }
5. Compile
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
Result:
Blueprint won't compile and function node shows an error.
Expected:
Blueprints that are compiled remain clean after relaunching the editor.
i have this problem UE4CC-Windows-58DC12AF4B97F057BD108FBFF569B2E9_0000
I am not able to find world outliner how to enable it?
Delay nodes occasionally don't fire the "Completed" output in a nativized build
Installer 4.10 failed with error code R-1603
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How can i modify the param name in EQS node
How to achieve HLSL Multiple Render Target in Material blueprints?
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.7.6, 4.8 |
Created | Jun 8, 2015 |
---|---|
Resolved | Jun 15, 2015 |
Updated | Jul 14, 2021 |