Uinterface unkown typename UNREAL ENGINE

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

Welcome to our audio and rhythm plugins collection! With MidiEngine, you can easily import MIDI files and use midi events to create engaging rhythm gameplay or enhance your videos.

4.5/5

Plugin that helps add UMG Widgets to Level Sequences for Text Layers, Movie Titles, 2D layers and more… directly within sequencer. Cross platform.

5/5

Let your end users Split And Resize The UI at runtime. Perfect for both games and Applications.

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!