help undertstanding this code

hi guys, when creating a class ue generates

class PROJECTNAME_API mycharacter : public Aactor

is the PROJECTNAME_API necessary here? what does it mean? is it necessary? thanks

it is the module name, for example u create a project named FPS_GunGame
in Source folder, there will be FPS_GunGame folder and FPS_GunGame.build.cs inside of it. That is the module name of (Module Name).build.cs

I think, it is to limit the compiler to include what code to be accessed by a module.

It is not neccessary on your project source files, but important on plugins

thanks !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.