[4.12.4] created UMaterial class have linker error

№ 16
Title: [4.12.4]

Importance: Major.

Branch: Binary.

Build version:
Version: Version: 4.12.4-3028348+++UE4+Release-4.12

System Specs:
OS:Win8.
Additional specification will be provided by request.

Attachments: It will be provided by request.

Detailed description of the issue: Linker error raised after UMaterial class has been added via editor.

Screenshots/Link to video: It will be provided by request.

Reproduction steps:

  1. Create a new C++ blank project without starter content.
  2. Create new c++ class Material(MaterialInterface->Material)
  3. Auto compilation will be fallen. Project has been corrupted.
  4. Also, please pay attention to “Hot Reload buttons” was disappeared.

Frequency: 100%

Expected behavior:
New class have all required dependencies.
Also very nice to have ability to “Hot reload code” after this kind issue was happened.

P.s. I wish you a happy Independent Day! Happy holidays!

Hello ,

We’ve had a few reports of the Compile button disappearing from the editor along with the loss of functionality for hot reloading and each time the reproduction steps seem a bit different but always result in the compilation failing in some way. In this case, it is expected that creating a class based off UMaterial would cause this error as it is marked for MinimalAPI, meaning it won’t be available for usual exposure. If you do wish to subclass this, you’ll need to make the appropriate edits to Material.h in a source version of the engine but please keep in mind that exposing that class may require exposing many more before it’ll allow you to compile.

I’ve added your reproduction steps to the bug report for the disappearing compile button.

Have a nice day!