how to view C++ implementation of a blueprint node

Is there any way to see c++ implementation of a blueprint node in the Engine source code
like Get Player Character , Spawn actor from class

Like when we make make custom (Blueprint callable) Funtion
and we can double click on the node in blueprint graph
and it jumps to the visual studio

hi @Kunal.Sni

Blueprints arent actually made into c++ they are interpreted by the engine direct

That said you can view the c++ header using tools menu > C++ header preview, then chose your blueprint

that said they are compiled of sorts, just not as readable c++ classes you can use in VS

2 Likes

If you checked the box while downloading the engine named “source code” and you have a project with source code setup to use visual studio then double clicking BP nodes should take you to the source file.

The name of the node might be slightly different from the actual function name but the class that it comes from is searchable too. The target is the class name which gets revealed when hovering the node.

Some nodes like Spawn Actor from Class are nodes with extended features normally prefixed K2Node eg. K2Node_SpawnActorFromClass.h

What @High500 is referring to is generated C++ from Blueprint which is pretty much unreadable.

3 Likes

Can c++ create blueprints? So if I do not want to manually create a virtual production camera setup that takes half a day… I can have ChatGPT do it ?

I have the launcher version of unreal
I never use the source bulid of it
so if i have to view code i have to download source version

currently i am view code with the C++ function Version of the blueprint node to see that

No you don’t need the actual source code from github but you do need to download the source files which is not installed by default otherwise you can’t see the code.

I don’t know anything about Virtual production but
Yes, You can create C++ Function , Variables ,Enums all general Blueprint stuff in c++ And expose them to Blueprints

Can you tell me
How to do that

Installing Unreal Engine | Unreal Engine 5.0 Documentation

Look for Engine Source

You’re taking about engine source option
I Enabled it

I have a C++ Project Setup with VS 2022

And I can’t open The nodes

If you download engine source, simply double-click the box in the blueprint and it will jump to the C++ implementation of that function.

You also need Visual Studio version 2019 or 2022 installed. Note: “old-school” Microsoft Visual Studio, not Visual Studio Code. You can download the free community edition, and that’s good enough.

In fact, it’s usually a little TOO happy to do this, so I generally turn off that feature, because it’s disruptive when accidentally double-clicking when trying to select/move nodes around …