SMeshWidget - Hardware Instanced Slate Meshes Thread

Hi! I confirmed that Nick’s sample works on UE 4.18 by adding the following changes.

MeshWidgetExample.Build.cs (Update to new format from UE 4.16)



public class MeshWidgetExample : ModuleRules
{
    public MeshWidgetExample(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

        PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "SlateCore", "Slate", "UMG" });
    }
}


MeshWidgetExample.Target.cs (Update to new format from UE 4.16)



public class MeshWidgetExampleTarget : TargetRules
{
    public MeshWidgetExampleTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Game;

        ExtraModuleNames.AddRange( new string] { "MeshWidgetExample" } );
    }
}


MeshWidgetExampleEditor.Target.cs (Update to new format from UE 4.16)



public class MeshWidgetExampleEditorTarget : TargetRules
{
    public MeshWidgetExampleEditorTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Editor;

        ExtraModuleNames.AddRange( new string] { "MeshWidgetExample" } );
    }
}


MeshWidgetExampleCharacter.cpp (Fixed order of include)



#include "MeshWidgetExampleCharacter.h"
#include "MeshWidgetExample.h"
​​​​​​​

MeshWidgetExampleGameMode.cpp (Fixed order of include)



#include "MeshWidgetExampleGameMode.h"
#include "MeshWidgetExample.h"
#include "MeshWidgetExamplePlayerController.h"
#include "MeshWidgetExampleCharacter.h"
​​​​​​​

MeshWidgetExamplePlayerController.cpp (Fixed order of include)



#include "MeshWidgetExamplePlayerController.h"
#include "MeshWidgetExample.h"
#include "AI/Navigation/NavigationSystem.h"
​​​​​​​

ParticleWidget.cpp (Fixed order of include)



#include "ParticleWidget.h"
#include "MeshWidgetExample.h"
#include "Slate/SMeshWidget.h"
#include "Slate/SlateVectorArtInstanceData.h"
​​​​​​​

ParticleWidget (Fixed lack of include)



#include "Slate/SlateVectorArtData.h"
#include "Widget.h"
#include "ParticleWidget.generated.h"
​​​​​​​

Thanks Nick!