Not sure if bug or I am doing something wrong. I have tracked this down to being the hud class. If I remove it from the source and rebuild the editor will launch. If I put the files in and rebuild the editor will crash on startup.
RuckusHUD.h
#pragma once
#include "GameFramework/HUD.h"
#include "RuckusHUD.generated.h"
UCLASS()
class RUCKUSARENA_API ARuckusHUD : public AHUD
{
GENERATED_BODY()
public:
ARuckusHUD(const class FObjectInitializer& ObjectInitializer);
virtual void DrawHUD() override;
void DrawCenterDot();
};
And RuckusHUD.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "RuckusArena.h"
#include "RuckusHUD.h"
#include "Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h"
ARuckusHUD::ARuckusHUD(const class FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
UKismetSystemLibrary::PrintString(this, "HUD init top", true, true, FLinearColor(0.000000, 0.660000, 1.000000, 1.000000), 2.000000);
//TODO:
UKismetSystemLibrary::PrintString(this, "HUD init bottom", true, true, FLinearColor(0.000000, 0.660000, 1.000000, 1.000000), 2.000000);
}
void ARuckusHUD::DrawHUD()
{
Super::DrawHUD();
DrawCenterDot();
}
void ARuckusHUD::DrawCenterDot()
{
}
And the editor crash log, just the last lines …
[2016.08.30-14.21.02:859][ 0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
[2016.08.30-14.21.03:175][ 0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2016.08.30-14.21.03:175][ 0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2016.08.30-14.21.04:163][ 0]LogUdpMessaging: Initializing bridge on interface 0.0.0.0:0 to multicast group 230.0.0.1:6666.
[2016.08.30-14.21.04:227][ 0]LogBlueprintUserMessages: [Default__RuckusHUD] HUD init top
Note there is nothing after the HUD init top
If lines 12 and 14 are commented out in RuckusHUD.cpp the editor will launch fine. Also if you compile with the two prints with the editor open it will hot swap without an issue.