Skip to content

Instantly share code, notes, and snippets.

View rms80's full-sized avatar

Ryan Schmidt rms80

View GitHub Profile
@rms80
rms80 / gist:622fd2fadd7fbecd2ab411fc7561d727
Created July 29, 2024 04:14
bit of code to add Mode Buttons to the Modes Toolbar in UE5 (to the right of Modes dropdown)
// grab some global stuff from the level editor
FLevelEditorModule& LevelEditorModule = FModuleManager::GetModuleChecked<FLevelEditorModule>("LevelEditor");
TSharedRef<FUICommandList> CommandBindings = LevelEditorModule.GetGlobalLevelEditorActions();
const FLevelEditorModesCommands& ModesCommands = LevelEditorModule.GetLevelEditorModesCommands();
FToolMenuOwnerScoped OwnerScoped(this); // not sure what this is for exactly, but other UToolMenu extenders do it
// hardcoded name for the modes toolbar, from FLevelEditorToolBar::RegisterLevelEditorToolBar()
UToolMenu* ModesToolbar = UToolMenus::Get()->ExtendMenu("LevelEditor.LevelEditorToolBar.ModesToolBar");
// add a new section
@rms80
rms80 / CLA.md
Created January 9, 2026 15:50
geometry3Sharp Contributor License Agreement V1

Contributor License Agreement: geometry3Sharp

Project: geometry3Sharp (https://github.com/gradientspace/geometry3Sharp)

Thank you for your interest in contributing to geometry3Sharp (the "Project"). This Contributor License Agreement ("Agreement") documents the rights granted by contributors to the Project maintainers. By submitting a Contribution to the Project, you accept and agree to the following terms and conditions.

1. Definitions

  • "You" (or "Your") means the individual or legal entity submitting a Contribution to the Project.
  • "Contribution" means any source code, documentation, or other original work of authorship, including any modifications or additions to an existing work, that is submitted to the Project via pull request, patch, or any other means.