Language:
Page Info
Skill Level:
Engine Version:

2 - Create a C++ Class

Choose your OS:
  1. In the Unreal Editor, we can create a new C++ class with the New C++ Class... command, located in the File drop-down menu.

    AddCPPClass.png

  2. The Choose Parent Class menu will open. Since Actor is the most basic class that can exist in an Unreal Engine level, we'll use the Actor class as our base.

    ChooseParentClass.png

  3. The Name Your New Actor menu will open. For this example, let's enter the name "FloatingActor", and then click Create Class.

    NameActorClass.png

Now that we have created a C++ class, we can switch to Visual Studio to program it. FloatingActor.cpp will be opened for us automatically, and Unreal Engine will automatically compile and reload the code with our new class.