Error compiling blueprint: Can't find pin for _WorldContext

Getting slightly frustrated because everytime I try to compile my blueprint function library I get an error saying:

Error Could not find a pin for the parameter __WorldContext of CreateLayout on Create Layout

CreateLayout calls the function PlaceNode which then calls SpawnActor. If that’s relevant. (Only place I can find Worldcontext Pin is on the PlaceNode Call in CreateLayout.)

In short, add a Get Player Controller node in your CreateLayout function. This node wouldn’t be hooked up to anything. By being there it tricks the Blueprint compiler into doing the right thing.

For full details of the bug and workaround see the bug report I created here:

https://answers.unrealengine.com/questions/231716/blueprint-compile-error-could-not-find-a-pin-for-t.html