about a C++ based BP

Hi!..

I wrote a simple MyPawn c++ object where put some basics things like :UMeshComponent, UAudioComponent, USpotLightComponent, etc…
Then compiled and created a BP based on that C++ class, named and saved the BP_MyPawn, then edited it on the BP editor, reallocated things in their positions correctly…

If I add the BPMyPawn to the scene does that means the MyPlayer.cpp will be useless?
Thanks.

useless? no, it’s still the base of your BluePrint…

ok, i will test what happens if i delete the cpp class… thanks.

The C++ class is the base. If you “delete it”, your blueprint will either stop working and throw errors at you, or get reparented automatically. A blueprint is basically a “C++ class but it’s graphs”. Here is an example of what a Character blueprint is: UObject->Actor->Pawn->Character->YourCustomC++CharacterClass->YourCustomCharacterBP. Each of them inherint from something (except UObject as that’s the base). They inherit functions, variables, etc…

no, that won’t work. why would that work? I don’t even understand what you’re thinking, to try and offer an answer.

I did say “no”, to the question of “it’s useless” right? lol

I’m so confused