How to access "Open level blueprint" in C++?

I want to access this level blueprint from C++ to write code in there , how to do this if this is possible.
image_2022-06-16_145329145

Thank You

You can create a cpp class derived from LevelScriptActor, and select it as parent class in your Level BP.
However, you won’t be able to so easily get references to level actors in c++ as you can in Level BP. So decide whether or not you really need to do level scripting in c++.

2 Likes

Thank You for detailed information, I was trying to write some basic code on here to spawn an actor from class using C++

So I should do it in under the editor as it is not possible or not easy to directly access the level blueprint C++ class, as the project is itself a C++ project.