Uinterface unkown typename UNREAL ENGINE

Advertisement

You may encounter the following errors while developing in unreal engine.

  • error: expected class name
  • error: unknown type name ‘UInterface’

  • error: constructor initializer ‘Super’ (aka ‘int’) does not name a class

When they occur

Usually this error will occur while attempting to package a plugin or project for Android or IOS but not for windows or desktops.

Solution

You need to explicitly include the header for each class you use in your code.
Taking UInterface as an example:

  • You need to #include “UObject/Interface.h”

Visual Studio will not complain when you use UInterface without explicitly including this header, but Unreal Engine will complain while packaging… 

5/5

Gamechanger plugin for notehighway rhythm games and music visualizers

5/5

Add Text and 2D UMG widgets to Level Sequences

Consider investing in some of our plugins. They might save you some time.  Also helps supports these tutorials.

Instantly get access to our plugins like Blender Curves Importer and UMG Cinematics and more when  you support us on Patreon!

 Join Us On Discord For More Daily Tips!