All Projects → nxrighthere → Unrealclr

nxrighthere / Unrealclr

Licence: mit
Unreal Engine 4 .NET 5 integration

Projects that are alternatives of or similar to Unrealclr

Rizz
Small C game development framework
Stars: ✭ 428 (-66.43%)
Mutual labels:  game-development, gamedev, game-framework
Gamedev4noobs
Olá, sejam bem-vindos ao repositório _gamedev4noobs_ do Estúdio Vaca Roxa. O propósito desse repositório, além de contribuir para o projeto 4noobs, é ensinar o básico do desenvolvimento de jogos para iniciantes. Apresentando boas práticas e insumos para criar games incríveis.
Stars: ✭ 122 (-90.43%)
Mutual labels:  game-development, gamedev, unreal-engine-4
Gameproject3
游戏服务器框架,网络层分别用SocketAPI、Boost Asio、Libuv三种方式实现, 框架内使用共享内存,无锁队列,对象池,内存池来提高服务器性能。还包含一个不断完善的Unity 3D客户端,客户端含大量完整资源,坐骑,宠物,伙伴,装备, 这些均己实现上阵和穿戴, 并可进入副本战斗,多人玩法也己实现, 持续开发中。
Stars: ✭ 655 (-48.63%)
Mutual labels:  game-development, gamedev, game-framework
Game Networking Resources
A Curated List of Game Network Programming Resources
Stars: ✭ 4,208 (+230.04%)
Mutual labels:  game-development, gamedev, unreal-engine-4
Excalibur
🎮 An easy to use 2D HTML5 game engine written in TypeScript
Stars: ✭ 892 (-30.04%)
Mutual labels:  game-development, gamedev, game-framework
Unity Package Tools
A set of developer tools to make it easier to create and distribute packages for the native Unity Package Manager.
Stars: ✭ 44 (-96.55%)
Mutual labels:  game-development, gamedev
Fworldgenerator
Procedural world generator (plugin) for Unreal Engine 4
Stars: ✭ 45 (-96.47%)
Mutual labels:  unreal-engine-4, plugin
Pyxel
A retro game engine for Python
Stars: ✭ 9,133 (+616.31%)
Mutual labels:  game-development, gamedev
Bytepath
A replayable arcade shooter with a focus on build theorycrafting made using Lua and LÖVE.
Stars: ✭ 1,119 (-12.24%)
Mutual labels:  game-development, gamedev
Phaser Node Kit
Rapid Game Development with PhaserJS and Node for Modern Browsers
Stars: ✭ 39 (-96.94%)
Mutual labels:  game-development, gamedev
Magictools
🎮 📝 A list of Game Development resources to make magic happen.
Stars: ✭ 8,853 (+594.35%)
Mutual labels:  game-development, gamedev
Admob Unity Plugin
👾 An extension for Unity3d to place AdMob banners in your Android games.
Stars: ✭ 86 (-93.25%)
Mutual labels:  gamedev, plugin
Tank island
Top down 2D shooter game that involves blowing up tanks
Stars: ✭ 42 (-96.71%)
Mutual labels:  game-development, gamedev
Simpleton Engine
What a stupid name for a library
Stars: ✭ 42 (-96.71%)
Mutual labels:  game-development, gamedev
Documentation
Online documentation and tracking tools for Naninovel — writer-friendly visual novel engine
Stars: ✭ 48 (-96.24%)
Mutual labels:  game-development, plugin
Game Dogfight
Air to air combat game, created in Python 3 using HARFANG 3D.
Stars: ✭ 41 (-96.78%)
Mutual labels:  game-development, gamedev
Polyworld
A world generator that is based on Voronoi diagrams
Stars: ✭ 59 (-95.37%)
Mutual labels:  game-development, gamedev
Lance
Multiplayer game server based on Node.JS
Stars: ✭ 1,161 (-8.94%)
Mutual labels:  game-development, gamedev
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+817.49%)
Mutual labels:  game-development, gamedev
Ezpygame
An easier way to use pygame
Stars: ✭ 72 (-94.35%)
Mutual labels:  game-development, gamedev

alt logo

PayPal Coinbase

UnrealCLR is a plugin which natively integrates .NET host into the Unreal Engine with the Common Language Runtime for direct execution of managed code to build a game/application logic using the full power of C# 9.0, F# 5.0, and .NET facilities with engine API. The project is aimed at stability, performance, and maintainability.

API reference | Manual | Code of Conduct | Community | Roadmap | Contact

Features:

  • Host loading, integration, and management during the lifetime of the engine
  • Dynamic loading, unloading, isolation, and dependency resolving of user assemblies at runtime
  • On-the-fly access and execution of managed functionality through blueprints
  • Runtime exceptions handling and tracing
  • Continuously evolving framework for access to the engine API from managed code written in idiomatic C#
  • High-performance interoperability through optimized code and utilization of blittable data types
  • Support of .NET facilities including hardware-accelerated math with transparent re-mapping to vector types of the engine
  • Support of .NET tools for debugging and profiling such as JetBrains product line, dnSpy debugger, and others
  • Full independence from the compilation pipeline of assemblies with support of NuGet packages, analyzers, and generators
  • Automatic project packaging for standalone distribution
  • Carefully handcrafted source code for best maintainability and performance
  • Extensive unit testing to ensure the robustness and consistency
  • Distributed as a plugin and doesn't require rebuilding the engine
  • Documented source code

The plugin is available for Windows, Linux, and macOS (x64).

megagrant

Building

Prerequisites

Auto

Compilation

Create a new or use an existing Unreal Engine C++ or blueprints project. Clone the repository or download a desirable version from the releases section. Navigate to Install folder, and run dotnet run command. Follow the installation instructions. Open the project after the installation process is complete.

Upgrading

Make sure that the Unreal Engine is not running. Re-run the installation process. Recompile custom code with an updated framework.

Manual

Compilation

Plugin

Create a new or use an existing Unreal Engine C++ or blueprints project. Clone the repository or download a desirable version from the releases section. Copy the content of the Source/Native folder to %Project%/Plugins/UnrealCLR directory. Compile the managed runtime from Source/Managed/Runtime folder by running the following command: dotnet publish --configuration Release --framework net5.0 --output "%Project%/Plugins/UnrealCLR/Managed". Restart Unreal Engine, open the project, and build the plugin.

Tests

To quickly start testing, open a project with the plugin in Unreal Engine, copy all folders from the Content of the repository to %Project%/Content directory, and wait until they loaded in the Content Browser. Compile the managed assemblies from Source/Managed/Tests folder by running the following commands:

dotnet publish "../Framework" --configuration Release --framework net5.0
dotnet publish --configuration Release --framework net5.0 --output "%Project%/Managed/Tests"

Upgrading

Make sure that the Unreal Engine is not running. Delete the plugin folder from a project, and repeat all steps from the compilation section. Recompile custom code with an updated framework.

Running

Plugin

The plugin is automatically loaded at startup. To make sure that it's initialized open the console window from Window -> Developer Tools -> Output Log, find UnrealCLR logs using the search input.

Tests

Open the scene with tests in the editor and enter the play mode. To switch a test, navigate to Blueprints -> Open Level Blueprint, select the Test Systems enumeration on the left panel, and change default value on the right panel.

Overview

Design and architecture

UnrealCLR is designed to be flexible and extensible. The plugin is transparently managing core functionality of the runtime, binding and caching the engine API for managed environment. The programmer has full control over execution flow through code and blueprints that allow to dynamically weave native events of the engine and its objects with managed logic. There's no hidden states or obscured order of execution behind the lifecycle of scripts.

Assemblies management

At runtime, UnrealCLR loading managed assemblies into a cached isolated context. It allows dynamically replace assemblies after unloading them from memory, therefore the programmer can work with code without restarting the editor for continuous development. The compilation pipeline is entirely up to a developer, it can be organized in any desirable way without any limitations and with full support of NuGet packages.

Engine application program interface

The plugin and framework are evolving all the time to utilize as much power of the Unreal Engine as possible. It's crucial to have a feature-rich API. The system is created with high-performance in mind but without trading safety. The vast majority of code is written and verified by hand to prevent any unexpected behaviors at runtime and to ensure stability.

Powerful tooling

Use your favorite IDE and .NET tools that can be attached to the process of the engine just as to a regular .NET application for profiling and debugging. It's very convenient and works out of the box without any external effort. Analyze performance, monitor CPU usage and memory consumption, debug execution, take full control over the code. Explore new possibilities and extend your toolset in no time.

Essentials

Exceptions

The runtime redirects all unhandled exceptions to log files, the console window, and on-screen messages of the engine, however, it's highly recommended to use try/catch blocks to override redirections with custom handlers. It's necessary to have an attached debugger to properly trace exceptions in the editor or standalone.

Memory management

Unreal Engine, as well as .NET runtime, utilizes a garbage collector for memory management. The framework is designed with consistency in mind to prevent crashes and validate memory transparently for a programmer, no matter how objects were created and freed: with C++, C#, F#, or blueprints.

Hot reload

The plugin is independent of the compilation routine of user assemblies. It's loading assemblies from %Project%/Managed folder and resolving dependencies at runtime after entering/leaving the play mode. The framework of the plugin with the engine API is automatically recognized and loaded as a dependency.

Ecosystem compatibility

The framework replicates the class hierarchy of the engine with full interoperability support. Any external C++ code, blueprints, and plugins are compatible and extensible with UnrealCLR by design through the engine API. The plugin integrated into the engine's building pipeline and ready for distribution of self-contained applications.

Acknowledgments

Thanks to @natemcmaster for a great .NET library that simplifies dynamic loading of assemblies.

Special thanks to @Doraku for an amazing documentation generator and rapid improvement of it.

Supporters

These wonderful people make open-source better:

supporters

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].