Any way I can call a blueprint function/CustomEvents in level editing mode other than ConstructionScript?

I know ConstructionScript can do the trick, but there are limitations. For example, you can’t spawn other actors or construct other objects in ConstructionScript.

I tried searching console commands and the “ce” command only executes during runtime.

The reason why I’m asking this is because I want to simplify the scene editing process. I mean, who wanna manually place 10,000 objects in the scene when you can just spawn them in random positions?

P.S. the best way I can think of to handle this situation is using a SaveGame object. I can call blueprint function during runtime, save the game(actor positions) then quit it and load the save in construction script, but this is too indirect and I still have to manually place actors in the editor!

In the details panel for each Blueprint function, you can check “Callable in Editor”. Then, if you have that actor in the level, selecting it will show your function as a button. These functions can’t take inputs directly in editor, but you can still reference other parameters on the blueprint for the same effect.

you cant spawn other actors in construction script but YOU CAN add child actors , which technically is like spawning other actors…

Wow, this is exactly the sort of feature I’m seeking!

One question left: The function can only be set in Blueprint Class? I tried to set up a function the same way in Level Blueprint yet I have no idea where to find the magic button. Looked for it in world settings or map asset itself, nothing.

The only node I find is “Add Child Actor Component”. Can you provide me with the node name?

yes thats the one, you add any actor with that

You are correct: only in an actor, not the level blueprint itself. You can always just make a utility actor though, if you want to store your editor-callable functions all in one place.

All right, this concludes my question. Thanks!

That’s adding an Actor Component, not an Actor.

Also, I tried using it in construction script and it yields nothing…