Description

Adding the following code to a plugin source file prevents the associated project from compiling in visual studio whereas this code will compile successfully inside of a class added directly to the project.

#include "Runtime/Engine/Classes/Materials/MaterialExpressionSubtract.h"
.
.
.
UMaterialExpressionSubtract* Multi;

This was tested with both UMaterialExpressionMultiply and UMaterialExpressionSubtract

Steps to Reproduce
  1. Open UE4 Editor
  2. Open Edit->Plugins->New Plugin
  3. Make a new plugin based on Toolbar Button (MyPlugin) (restart the editor as prompted)
  4. Open MyPlugin.h in Visual studio and add the two lines of code shown in the description
  5. Compile the code

Result:
Compile fails to complete

Repro Rate:
2/2

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.11
Target Fix4.13
Fix Commit2704241
CreatedMar 23, 2016
ResolvedJun 17, 2016
UpdatedMay 2, 2018
View Jira Issue