Leaving this here so that poor souls like me who know nothing about C++ can implement the proposed workaround.
Huge Disclaimer: I know nothing about C++, so use it at your own risk.
Steps to implement proposed workaround:
- Tools > New C++Class
- Name it as SampleViewer (I chose this name because of proposed solution)
- Use Actor Class as base
- In SampleViewer.cpp,
4.1 Add#include "Materials/MaterialRenderProxy.h"
below#include "SampleViewer.h"
4.2 Paste the rest of the code below BeginPlay()
4.3 Visual Studio will prompt you to create EndPlay() in SampleView.h. Use it.
4.4 Check out the screenshots if these are too confusing - Save
- In Unreal Engine Editor, recompile
- Create new Blueprint Class
7.1 Under ALL CLASSES, select newly created SampleViewer
7.2 Place it anywhere in the Editor
It seems to work fine so far, so kudos to the solution.
Below is what the end result looks like in code: