Developer Notes

This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.

Description

MaterialInterface which is a base class for other classes (such as UMaterialInstanceDynamic) is not being exported which causes compiler errors when a user attempts to access the functions of this class. Specifically, GetWidth and GetHeight are having this issue.

Steps to Reproduce

1. Create a new project
2. Add a C++ class of the type Actor
3. Below "virtual void Tick( float DeltaSeconds ) override;" (Line 21) in MyActor.h, add "UMaterialInstanceDynamic* DynamicInstance;"
4. Below "PrimaryActorTick.bCanEverTick = true;" (Line 11) in MyActor.cpp add "DynamicInstance = CreateDefaultSubobject<UMaterialInstanceDynamic>(TEXT("DynamicInstance"));"
5. Below "Super::BeginPlay(); (Line 18) in MyActor.cpp add "Height = DynamicInstance->GetHeight();"
6. Attempt to compile the project
Result: Compiler errors are given due to the function in step 5 not being accessible
Expected: The compiling should complete without any errors

Have Comments or More Details?

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

0
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.7.64.14
CreatedJun 9, 2015
ResolvedFeb 17, 2017
UpdatedApr 27, 2018