RaylibUE
Bridge Raylib's easy-to-use drawing API with Unreal Engine's intuitive Blueprint nodes.
Install / Use
/learn @DarknessFX/RaylibUEREADME
.----------------. .----------------. .----------------.
| .--------------. || .--------------. || .--------------. |
| | ________ | || | _________ | || | ____ ____ | |
| | |_ ___ `. | || | |_ ___ | | || | |_ _||_ _| | |
| | | | `. \ | || | | |_ \_| | || | \ \ / / | |
| | | | | | | || | | _| | || | > `' < | |
| | _| |___.' / | || | _| |_ | || | _/ /'`\ \_ | |
| | |________.' | || | |_____| | || | |____||____| | |
| | | || | | || | | |
| '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------'
DarknessFX @ https://dfx.lv | X : @DrkFX
RaylibUE Plugin For Unreal Engine
<img src=".git_img/RaylibUE_banner.png" alt="RaylibUE" width="640" />About
RaylibUE plugin seamlessly bridges Raylib's powerful 2D/3D drawing API with Unreal Engine's intuitive Blueprint system. Draw shapes, text, lines, textures and more, directly on your game viewport via transparent overlay, no code barriers.
Why RaylibUE?
- Educational Stating Point: Ideal for teachers and students, learn with Raylib's simplicity alongside Unreal Engine's depth, from basic shapes to 3D models.
- Raylib Fidelity: 50+ Raylib draw functions as Blueprint nodes (e.g., DrawCircle, DrawText, DrawModelEx) with exact parameters for 1:1 learning.
- Independent Rendering: RaylibUE uses Raylib graphics API (OpenGL), running independent of Unreal Engine’s graphics settings, and fully compatible with DirectX 11, DirectX 12 and Vulkan projects.
- Non-Intrusive Overlay: Renders to an independent overlay window atop the Unreal Engine game viewport, syncing on resize, move, maximize or minimize, while preserving Unreal Engine input, focus and performance.
- Command Buffer: Queue and update render draw commands with handles, reorder, purge by type, or bulk-set commands for real-world renderer pipeline practice.
Features
| Category | Highlights | |----------|------------| | 2D Basics | Pixels, lines, circles, rects w/ gradients/rounding | | Text | Dynamic fonts, texture fonts, codepoints, pro transforms | | 3D | Spheres, cubes, cylinders, models w/ wires | | Textures | Billboard, NPatch, pro UVs | | Utils | Camera, FPS counter, grid, ray |
-
Blueprint Chain: All nodes return OutShape pins, allowing direct connection to Update nodes for zero-friction development.
<img src=".git_img/screenshot_07.png" alt="RaylibUE" width="640" /> -
C++ Friendly: Static calls, e.g.,
URaylibUEBPLibrary::DrawPixel(10, 10, FLinearColor::Red, ID, Shape);.
#include "RaylibUEBPLibrary.h"
FRlDrawText rlText;
URaylibUEBPLibrary::DrawText("Hello RaylibUE!", 100, 100, 24, FLinearColor::Yellow, rlText);
Installing from Releases page
If you are using Unreal Engine 4.27.2 or 5.6.1 and don't want to build the plugin from source, you can go to the Releases page and download the ready-to-use binary version.<br/> Just unzip the file into your project folder and open your .uproject.<br/> The engine will enable and load RaylibUE, you can start using it immediately.<br/>
Building from source
- git clone https://github.com/darknessfx/RaylibUE.git
- Create a new Unreal Engine C++ Project named YourProject.
- Create a new folder named Plugins at YourProject/.
- Copy RaylibUE to YourProject/Plugins/ folder.
- Regenerate project files. (right-click YourProject.uproject and Generate Project Files).
- Open YourProject.uproject and reply Yes to buld the project. <br/><br/>
Dependencies :
- Windows (WinAPI overlay)
- Unreal Engine 4.25+ and 5.0+ (Tested on 4.27.2 and 5.6.1).
- Raylib library is bundled.
- Visual Studio or VS Code to build from source, more information at Unreal Engine: Setting Up Visual Studio and Setting Up Visual Studio for Unreal Engine.
Quick start
<img src=".git_img/screenshot_08.png" alt="RaylibUE" width="640" /><br/>
- Open Level Blueprint.
- Event BeginPlay, add a new node: Raylib DrawText.
- Set DrawText node to Text "Hello Raylib", PosX 30, PosY 30, FontSize: 64, Color: Green
- Play in a New Editor Window (PIE).
<img src=".git_img/screenshot_09.png" alt="RaylibUE" width="640" /><br/>
Next Step: See the image below to make your text grow each frame. <img src=".git_img/screenshot_02.png" alt="RaylibUE" width="640" />
Sample
(Under construction)
Credits
Unreal Engine from Epic Games.<br/> RayLib from Ramon Santamaria (X : @raysan5).<br/>
License
@MIT - Free for everyone and any use. <br/><br/> DarknessFX @ https://dfx.lv | X : @DrkFX <br/> https://github.com/DarknessFX/RaylibUE
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
