Earlier bug that is closed when you perform GetWidth or GetHeight
As: https://answers.unrealengine.com/questions/742/bug-compiler-linker-error-umaterialinterfacegetwid.html describes.. when in C++ you do a GetWidth/GetHeight on a UMaterialInstanceDynamic you get an unreferenced link error on UMaterialInterface
Above topic is closed but I have the exact same issue and well I'm on the latest build of the UE (4.7.6)
So I'm wondering if there's a way to bypass it. What reference do I to add to fix this? Or is there another way to get the width/height of UMaterialInstanceDynamic ?
asked Jun 07 '15 at 06:12 PM in Bug Reports
Our process back in beta was different than it is now. This was marked as resolved in beta because it was able to be resolved by editing the source code, which was a suitable solution at the time. Seeing as we are now released, I've put a bug into our database for this issue. For your reference, the bug number is UE-16755. In the meantime, if you are able to use the source code version of the engine, you can make a few simple changes to fix this issue. Navigate to the file "MaterialInterface.h" and change the following lines of code from:
The issue you were experiencing was because these functions weren't being exported to the ENGINE_API as most functions are, so it was giving you an access violation.
Have a nice day
answered Jun 09 '15 at 07:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here