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.


  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.


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


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.