Skip to content

Instantly share code, notes, and snippets.

View MilkyEngineer's full-sized avatar

Alex Stevens MilkyEngineer

View GitHub Profile
@MilkyEngineer
MilkyEngineer / Minimal-5.2.uproject
Last active April 11, 2024 19:53
Minimal project descriptor that "Disables Engine Plugins by Default" for Unreal Engine
{
"FileVersion": 3,
"EngineAssociation": "5.2",
"Description": "Minimum viable plugin dependencies for a usable Unreal Engine project",
"DisableEnginePluginsByDefault": true,
"Plugins": [
{
"Name": "PluginBrowser",
"Enabled": true
},
@MilkyEngineer
MilkyEngineer / MyEditorModule.cpp
Last active August 31, 2023 18:57
Unreal Engine 5.0: Per Platform Struct Customization
#include "PerPlatformStructCustomization.h"
void FMyEditorModule::StartupModule()
{
PropertyModule.RegisterCustomPropertyTypeLayout(FPerPlatformMyStruct::StaticStruct()->GetFName(), FOnGetPropertyTypeCustomizationInstance::CreateStatic(&FPerPlatformStructCustomization<FPerPlatformMyStruct>::MakeInstance));
}
void FMyEditorModule::ShutdownModule()
{
PropertyModule.UnregisterCustomPropertyTypeLayout(FPerPlatformMyStruct::StaticStruct()->GetFName());
@MilkyEngineer
MilkyEngineer / FunctionLibrary.cpp
Created March 3, 2021 06:00
UE4: Reset action mapping to defaults
// Copyright Epic Games, Inc. All Rights Reserved.
#include "FunctionLibrary.h"
#include "GameFramework/InputSettings.h"
bool UFunctionLibrary::ReloadConfigProperty(UObject* Object, FName PropertyName, UClass* Class)
{
if (Object == NULL)
{