A complete Unreal Engine plugin for building blockchain games on Solana with Unreal Engine 5.
The toolkit comes with a starting template for MMO Solana integrated games, a multiplayer game server & client SDK, and REST API to handle global server calls for players.
-Full SOLNET capabilities in C++ & blueprint
-In-game wallet system with data protection and encryption
-Mint metaplex NFTs
-Payment Processor Examples
-Universal platform support when using the REST API
-Unreal SOLNET for on-chain game development
Using Unreal SOLNET, we can use SOL.NET and the power of .NET runtime inside the game giving developers the ability to communicate with the Solana blockchain without having to build an entire c++ library from scratch.
For specific application types like VR/AR/XR where an in-game wallet would be needed then we use UnrealSOLNET to call the Solana UE5 SDK directly in the game. Using LinkStream the engine is capable of communicating with .NET runtime, while also being able to request signing via Tranquility Wallet and popular mobile wallets using encrypted TCP & Websocket loopback mechanics.
All plugin related content can be found in the content browser under: Plugins -> Solana SDK
First start by adding a Linkstream blueprint to your games level. It can be found in: Plugins -> Solana SDK Content -> Blueprints
Once you have linkstream in your level you can communicate with Unreal Solnet with fully capabilities.
Open up the level blueprint and create a sequence that initializes the chain client first
Create custom events for connecting to Unreal SOLNET SDK. Several requests are implemented by default for general usage of the SDK, but it is recommended you make your own wrapper that fits your needs.
Bind events from objects in the world to invoke the chain client from anywhere
For a more in-depth look on how to properly setup the Solana SDK check out the sandbox map in the Maps folder found with the rest of the content and review the Solana SDK source code for better understanding on how the SDK interacts with the framework.
To expand the wrapper and make full usage of Unreal SOLNET you will need to move the SolanaKit source to a location outside of the plugin folder.
All marketplace plugins can be found in the 5.2 Engine folder in Plugins -> Marketplace -> Solana SDK -> SolanaKit
After moving the source to a new workspace, open up the project and navigate to GameRuntime.cs then scroll to the bottom method called HandleRequestEvent
C#
This is the LinkStream wrapper its where you can expand and add more requests for what ever you need. This is an example from the Frontiers SDK that shows how requests were added to handle on-chain program transactions for a PvP RTS game
C#
Update the request IDs and Methods list ENUM blueprints in the plugin blueprints folder to match the request ids in your new wrapper.
This is for usage with the Unreal Solana SDK REST API found [here]() The game template c++ classes come with http request samples to interact with the REST API and allow a game server to request signing from the players without needing to run Unreal SOLNET on the game client. This method is required for Mobile, HTML5, Consoles, & the holo-lens 2. It enables secure solana mobile apps and dedicated server related transaction authentication.
C# API template code
C++ GameMode template code
These are starting points for a dedicated global server with Solana integration. For building fully on-chain games it will require Unreal SOLNET & a linkstream wrapper