Cronos Play for Unreal Engine Plugin is an immensely powerful tool for game developers creating blockchain-powered games. We're excited to announce the release of Cronos Play for Unreal Engine Plugin: play-unreal-plugin v0.0.12-alpha, along with a new version of its compatible demo: play-unreal-demo v0.0.10-alpha. Both releases are available for free on the Unreal Engine Marketplace.
Let’s take a closer look at the exciting new features and improvements.
Play-Unreal-Plugin v0.0.12-alpha
MetaMask and Crypto.com DeFi Wallet Support
Players can now send transactions using either MetaMask or the Crypto.com DeFi Wallet. This update enables users to seamlessly connect their wallets and send transactions directly from within the game, significantly streamlining the transaction process and enhancing overall functionality. To enable this capability, the SendEip155Transaction method has been added to support both wallets. We've also included missing ERC bindings, such as Erc721SetApprovalForAll
and Erc20Transfer
, which call the eth_sendTransaction
RPC method inside, ensuring compatibility with both MetaMask and Crypto.com DeFi Wallet.
Play C++ SDK v0.0.19
The plugin’s release leverages an upgrade of the underlying play-cpp-sdk
, from v0.0.14-alpha to v0.0.19-alpha.
Key updates in play-cpp-sdk v0.0.19-alpha
include:
In addition to the refactored ERC20/721/1155 contract functions to general functions for WalletConnect 1.0 and the inclusion of general EIP1559 functions, this release also includes a draft version of WalletConnect 2.0.
The ethers library has been upgraded to version 2.0.
New security storage functionality for users to securely save their private keys in the security enclave of their Android devices, providing an extra layer of protection for the private keys of crypto wallets.
Updates to the Android NDK, which has been upgraded to version r23.
Enhancements and Bug Fixes
The latest releases also feature various bug fixes and improvements, such as the merging of CI workflows and fixes for various crashes.
One of the major issues addressed is the global pointer problem, which could lead to plugin crashes. To resolve this issue, we removed the global pointer and implemented a lambda function for sendEvent
, while also passing the PlayCppSdk
pointer to UserWalletConnectCallback
during initialisation. These changes have significantly reduced the likelihood of crashes, allowing for a more stable and reliable experience when working with decentralised transaction capabilities in the games.
Another key change is the replacement of rust::cxxbridge1::
with std::exception
. Since std::exception
may not be caught with the rust::cxxbridge1::
error, adopting this feature makes it possible to detect and mitigate additional potential errors.
Furthermore, we've streamlined the CI workflow to enable better support for new Unreal Engines in the future.
These updates should make the plugin more dependable and user-friendly, giving game developers a better building experience for their games on Cronos.
Play-Unreal-Demo v0.0.10-alpha
The new version of the Play-Unreal-Demo v0.0.10-alpha adds support for the latest version of the Cronos Play for Unreal Engine Plugin, as well as several other improvements.
The improved Android build script simplifies the process of building and deploying the demo on Android devices. The demo also features several new NPC assets, such as SendEip155Transaction
, Erc20Transfer
, Disconnect
, and CallDynamicContract
, giving developers more flexibility when building blockchain functionality into their games. We have formatted the demo code using code formatter clang-format, resulting in improved readability to save time during code review.
These latest versions of Cronos Play for Unreal Engine Plugin and Demo offer game developers powerful resources for building their games on Cronos. We are dedicated to making the platform as seamless and user-friendly as possible and look forward to seeing what our community will create using these new tools as we continue to push the boundaries of decentralised gaming with Cronos Play.