Repository navigation
UEVR Visual Studio CPP Template Plugins
These templates provide the quickest and easiest way to start writing a C++ plugin for UEVR, with some useful features already included. Use the simple template if you don't need an ImGui overlay. You can still make use of Lua based overlays by sending lua events and receiving back custom events as needed. The ImGui template is mostly adapted from praydog's example plugin and includes a totally separate imgui overlay. Again this can still interact with Lua, but the overlay itself cannot dock or merge with the UEVR overlay or any custom lua overlays.
To Install place the zip files in %USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplates
Path macros have been setup to allow building this from anywhere on your PC without having to setup cmake or manually set include paths in VS. As long as you have the latest Win10 SDK and VS 2022 everything should just build. A few changes have been made to Plugin.hpp, including a dllmain on detach event and higher level API access to dispatching lua events.
By default Debug config will build directly into your UnrealVRMod/UEVR/Plugins dir allowing for fast testing while ingame. Just be sure to unload plugins before building and then reload to see your changes. Release config will build to a folder named after the project within the same directory.
Please leave issues for anything relevant and I'll try to fix them as well as update with new features and ideas over time. These are more of a parting gift of sorts as I plan to step away from modding and focus on job searching but I'll do what I can.
You may also wish to try out the UEVRLib.h file found here https://github.com/elbadcode/uevrlib
This is a mostly AI generated attempt to translate some useful Lua functions by jbusfield into C++
These are not tested but did not show compiler errors, use at your own discretion
I generally avoid AI coding like the plague but I thought I'd test it as a time saver when existing valid code was available
These templates were made as a side project while working on a plugin that coregisters as a reshade addon to enable rendering effects in UEVR, stay tuned for that release