C++ class not appering in content browser after build

Hi.

Just a bit of background info, i’m using Linux and the version of the engine from github. The problem is when i add a c++ class and build the project in my IDE (CodeLite) the class does not appear in the content browser. Any help would be greatly appreciated. (Just a note this problem also happened in 4.16)

Thanks

The class, you want, must be UObject's derived class.

The UCLASS macro must contains BlueprintType and Blueprintable, if you want spawn a blueprint from it.

Like this:

UCLASS(BlueprintType, Blueprintable)
class UMyClass : public UObject
{
    GENERATED_UCLASS_BODY()

public:
};

Turn on the Show C++ Classes in View Options:

show C++ classes is enabled but it is still not showing.

Not sure, so be careful to trust this:

  • Either create the class from the UE editor, or
  • create the class in your C++ IDE, then right click in the filesystem (explorer, Total Commander, …) your .project and select “Generate Visual Studio Files”.

Not 100% sure, so it would be nice if you told us, if it works as I think.

If the above is not working, in the UE editor there is a menu item “File/Refresh Visual Studio Project”. You could try that one.

I have tried to refresh the c++ project in the UE editor but it didn’t help

I am not sure your code is right. Can you show your code lines?

At the moment its just the default generated code

Please Help.