Cronos Play Unreal SDK is a plugin for Unreal Engine that allows interacting with blockchain networks in a self-custodial way.
No security audits of this project have ever been performed yet.
The project is still in development and is alpha quality.
USE AT YOUR OWN RISK!
Unreal Engine 4.27 and 5.0 are supported, i.e. one of them should be installed via the Epic Games Launcher.
Building is supported via the Unreal Build System (C#):
- Run copydll.sh or copydll.bat (important)
- Click on the
.project
file - The project will be built automatically
Currently, this is supported on Windows via KantanDocGen Plugin:
- Run getdoc.sh inside Git shell
- Enable KantanDocGenPlugin in plugins
- Open the plugin dialog: File -> KantanDocGen
- Navigate in this dialog: Class Search -> Native Module -> Click + -> CronosPlayUnreal
- Click on "Generate Docs"
- location: CronosPlaySdk/Saved/KantanDocGen/
Make sure you use Visual Studio 2019 or later.(2022) it's already coded, if any compiling errors occur, add these line to top of c++ file
#pragma warning(disable:4583)
#pragma warning(disable:4582)
Make sure you use Xcode 13.2.1. If you are building the C++ SDK bindings and the corresponding binaries from Rust for Unreal Engine 5, then make sure to set a deployment target for the Cronos Play C++ SDK:
export MACOSX_DEPLOYMENT_TARGET=10.15
cargo build ..
You can check the deployment target using the otool
:
otool -l <resulting binary>.dylib
The LC_BUILD_VERSION/minos
should be 10.15.
- install unreal engine 4.27
- git clone this repository
- open CronosPlaySdk/CronosPlaySdk.uproject
- git clone this repository, and run
cd CronosPlaySdk
& copydll.sh or copydll.bat to copy dynamic libraries for ue4 editor - mkdir
Plugins
folder in your project - copy ./CronosPlaySdk/Plugins/CronosPlayUnreal
yourproject/Plugins/
, it's automatically detected in the project - also copydll.sh or copydll.bat to the project folder, and run it to copy dynamic libraries for ue4 editor
- click
add blueprint
in ue4 menu - inherit DefiWalletCoreActor or PlayCppSdkActor
- drag & drop your class to the scene
- category is CronosPlayUnreal
- apis in
..Blueprint.h
is stateless, can be called any place in the blueprint
If you are a game developer, please visit Cronos Play or fill this Contact Form for more information.