# Experience Web3.Unity and review GameFi's exploration path

By [shisi.eth](https://paragraph.com/@shisi-eth) · 2023-04-03

---

This article is translated by machine, there may be some errors with the reason, please move to view the original text：[体验Web3.Unity并回顾GameFi探索之路](https://mp.weixin.qq.com/s/oM4JPJ65zrkM69nSwyT7oQ)

Unity SDK, combined with the major events of gamefi, DeGame to do a comprehensive evaluation of the development of the Unity SDK. Evaluation.

The core logic of the whole article is as follows:

![](https://storage.googleapis.com/papyrus_images/00ef695b31cf726c8d6aeb80f8af82547c567a7835ee1b6a7ca60892b906b30b.png)

What is web3.unity SDK?
-----------------------

Among them, SDK is the abbreviation of Software Development Kit (Software Development Kit). It is a collection of tools and resources for developing software packages, applications, etc.

The Unity Asset Store is an online marketplace operated by Unity Technologies that provides a variety of digital artwork, tools, and resources for developing games and applications. Developers can buy or sell various types of digital assets in the Asset Store, such as 3D models, textures, sound effects, code, plug-ins, and editor extensions.

Unity Web3 SDK provides some preset functions and tools to help developers build Web3 games more easily. It supports EVM-based chains such as Ethereum, Polygon, Moonbeam, Cronos, Nervos, and Binance Smart Chain, among others.

### Why is there a need for a unity plugin for web3?

The SDK itself is a tool attribute, so the core audience of this web3.unity is developers, and the purpose is to reduce the learning cost of game developers for chain knowledge. For traditional game development, the most important languages ​​for rendering efficiency are C++ and C#, which are relatively different from the main js/go/rust/python development stacks in the blockchain community. Therefore, from the signature From the algorithm to the wallet and contract interaction, there will be many missing code tools.

In the Unity Asset Store, many well-known companies such as Little Fox, infura, Truffle, or the public chain have launched SDKs for partial function access, and the web3.unity described in this article has not yet been fully verified and included in the Store. But the source code package can already be imported for trial use.

![](https://storage.googleapis.com/papyrus_images/98fd5b19963358e628556c6881f83170a60f7f9f363d733e0074a28b25d894ca.png)

The homogeneity of these SDKs is relatively high, and they are all necessary tools for GameFi direction chain reform to provide code encapsulation and entry. Taking web3.Unity as an example, the core functions it provides are as follows

*   Implement custom interaction of multiple asset tokens in the game (ERC 20/721/1155)
    
*   Convenient access to the cross-game trading market in the game
    
*   Provides a variety of NFTMint solutions
    
*   Provide wallet login, social login and other packages
    
*   Multi-network support, package of commonly used tools for signature verification
    

Although the above functions are very simple in the eyes of blockchain developers, many chain-changing games in the past were mostly developed by people who were more native in web3, and lacked in gameplay. Nowadays, there are more and more SDKs that are easy for game developers to access the blockchain, allowing developers who are better at the game itself to take the initiative.

### How does the game access web3.Unity?

I am not a Unity expert, so it took a lot of time to configure the environment to access the SDK, but the lightness of the access was noticeable when I stepped into the actual development.

The following figure shows the wallet login via webGL wakeup

![](https://storage.googleapis.com/papyrus_images/40de4a0e2d5652a68ac99ae1fe0dabe9e12ab2c03f6dfa7617aa8f88f8d76066.png)

The following figure is an event triggered by binding a click to a button, the effect is to change the text of the button to the name of a token contract on the chain

![](https://storage.googleapis.com/papyrus_images/25106f5c5ba14d53eb34a9b9104300f7801559d445f2ccfdfb8f5475f8951dee.png)

The actually written Onclick() code is also very simple, only 4 lines

    async void Onclick()
        {
            string contract = "0x3E0C0447e47d49195fbE329265E330643eB42e6f";
            string name = await ERC20.Name(contract);
            Text text = GameObject.Find("Text").GetComponent<Text>();
            text.text = name;
        }
    

The relatively eye-catching function in this SDK is the integration of the NFT trading market part.

According to the official documentation, it is implemented using the EVM.CreateApproveTransaction class method of the web3.unity SDK

It basically revolves around the mode of order book matching under the chain. The general logic is that the official provides a centralized background consistent with Opensea, X2y2, etc., and the Approve here is to authorize the execution of transaction agreements such as seaport.

Obviously, if you buy and sell assets in the game, you need to jump to external web platforms such as os to conduct transactions.

*   EVM.GetNftMarket在游戏内获取所有上市销售的 NFT
    
*   EVM.CreatePurchaseNftTransaction在游戏内指定 NFT 和报价执行购买
    

These preset functions can reduce the complexity of NFT trading very well. In fact, not to mention game developers, developers who are familiar with the contract, if they want to separate from the opensea web portal to perform functions such as uploading and unloading purchases and collections, they have to It takes a lot of time and is prone to errors.

The mechanism of the mainstream trading model can be extended reading

*   [一文讲清-NFT 市场新秀 SudoSwap 的 AMM 机制-创新挑战与局限](https://mp.weixin.qq.com/s?__biz=MzIyMTQ5MTg5Mw==&mid=2247483943&idx=1&sn=fe2caeb811f3aa5adfe9dc5a3a6d3367&chksm=e83aa5fddf4d2ceb6dd5c978aa209fd36f4ac2917718aaa094016292f9ec038b2c733547936b&scene=21#wechat_redirect)
    
*   [抓完X2Y2十万 NFT 订单，分析版税可以不收后多少用户真这么做了？](https://mp.weixin.qq.com/s?__biz=MzIyMTQ5MTg5Mw==&mid=2247483957&idx=1&sn=ab8e4bfe0068fc19dccbb8b00d358541&chksm=e83aa5efdf4d2cf9263463ea18b4090a25843e0ad84a85bc5594c316045b4d884e526317cf9a&scene=21#wechat_redirect)
    
*   [【合约解读】CryptoPunk 世界上最早的去中心化 NFT 交易市场](https://mp.weixin.qq.com/s?__biz=MzIyMTQ5MTg5Mw==&mid=2247483924&idx=1&sn=30a642fa1acec069e31b40937e2d7de4&chksm=e83aa5cedf4d2cd861d3cf09c555720d7e6b89febb909ee88853d88f86ca913d3a1d701c1c00&scene=21#wechat_redirect)
    

Thinking and Summary
--------------------

### GameFi’s Handan Learning to DeFi

From the earliest cryptokitties to Axie and Stepn, which successfully broke the circle, I understand that this is the era of exploration of web3 on the game track. That's it.

After seeing the success of DeFi, it inspired other on-chain application developers to pour into social games and other tracks, just as the name of DeFi is composed of two parts: "De" which represents decentralization, and "Fi" which represents finance , so the current core design ideas of web3 games also distinguish these two paths

*   Integrate token incentives in DeFi to form GameFi
    
*   Drawing on the characteristics of DeFi decentralization, putting the core logic on the chain is also called a full-chain game DeGame
    

The former focuses on the chaining of the economic system and strengthens the ability to transfer and circulate assets. The latter focuses on the chaining of the game logic, improving the openness, transparency and auditability of the game, and accepting the proposals and governance of the players themselves.

**But are these two right? Or are there only these two paths?**

### Looking at the economic chain reform from Legend 4

Mir 4 (Legendary 4) of South Korea’s Wemade Company was sought after by new and old players around the world as soon as it went online in August 21. The net income of 4 Q2 1 was 337 million US dollars, reaching 140 W online at the same time, and 600 W of monthly active users. , the application of asset chain reform to realize the economic cycle of big R-middle R-gold diggers.

Although there are relatively good data, the difficult-to-adjust relationship between supply and demand caused the economic system to collapse a year later. Among them, it was revealed that Wemade adjusted the net income data of 2021 Q4 through the sale of Wemix tokens. Even so, it lost the follow-up player group The influx makes it difficult to control the highly volatile game assets smoothly, and it also makes many participants feel that Play to Earn is finally going to Play to Ponzi.

Looking back on history, the most durable economic system is Fantasy Westward Journey. The core of its stability comes from the point card system, which controls the minimum cost of supply, so that the generation of a high-level equipment is not only random, but also has a large amount of basic resources. The investment cycle (capital + time), so the terminal game version using point cards has achieved stable economic value preservation for up to 20 years, while the mobile game version does not implement point cards and its assets will not maintain value.

In the ups and downs of Legend 4, there are not only the official outrageous operations, but also the directional problem of the game itself to improve the liquidity of the chain. Even if there is such a grand ideal as cross-game asset sharing, if you pay attention to the essence The value of game assets is derived from services.

Just like the value of a concert ticket, he is not in the fine print, but in the promise of the organizer to deliver a show in the future. The value of the same bank certificate of deposit does not lie in how standardized the note is, but in its legal guarantee of repayment of principal and interest after a certain period of time.

### How to evaluate web3.Unity

Combining the retrospect and summary of the web3 game track just now, the author believes that the game path focusing on Fi has not yet found a sufficiently robust economic model, and it has not proved that the blockchain reform through Fi is better than traditional games.

And web3.Unity SDK can be said to be very friendly to game developers, but it is not more friendly to game design.

In the financial cycle of the game, he can easily help the output, transaction, and consumption parts in the figure below

![](https://storage.googleapis.com/papyrus_images/7e4a6b432d0ad1fe2ae7379b99542ce45b1a64809db73b7897faa8ddd4bdf748.png)

However, he also introduced the volatility on the chain at the same time. Although the volatility itself is not completely negative for the game, many games also use asset depreciation to adjust the announcement of new equipment to increase revenue.

The key point is that the introduction of excessive financial attributes during the period when the gameplay itself is not perfect will make the players who come here wrong.

Looking back at last year's Elden Circle, it is rare to see the well-deserved best game of the year. As a soul game, it requires players to have a super high reaction speed and exploration ability, so this type of game has always been a niche group. Through Several classic works such as Sekiro and Nioh have gradually influenced players over the years, and finally achieved a breakthrough in cognition through the low-difficulty open world ring.

In this process, if the player holds the idea of ​​making money by clearing the level at the beginning, what the busy gold hunters will only see is the payback cycle and ROI. Even in many high-volume games, players do not participate in the game and only buy and sell tokens. It is also possible to sell the coins directly when they are unlocked, which will damage the game ecology, which is unfair to those who play the game seriously.

The plug-in of unity+web3 is simple and easy to use. It is also expected that in the future, people who prefer to play games can design a game that combines the advantages of the chain. After all, for games, making money is only a process, and entertainment is the purpose.

Let players recharge for a better game experience, and let the project party provide users with better game content for continuous profit, so that the business closed loop will be very strong. After all, the most benign player composition is a small part of gold + small Some bosses + most entertainment players

### Can the DeGame evoke new opportunities?

The current mainstream GameFi products have basically not made any "decentralization" efforts at the product level. The core business logic is still fully constructed in a centralized manner, and the project party holds unrestricted power in the game.

Therefore, corresponding to Fi is a full-chain game with game logic on the chain, which is completely opposite to the web3.unity studied today.

Full-chain games have the advantages of high openness, composability, high decentralization, and easy verification of business logic.

*   In terms of openness, the value of props for traditional chain reform will dissipate as the game party runs away. This will be appropriately alleviated in DeGame. As long as the player group is large enough and the gameplay itself is correct, there will always be new developers To obtain this batch of accurate user portraits, it is like the original war 3 going to data, then going to LoL and then doing mobile game transplantation.
    
*   In terms of governance, players are the ones who understand the needs better, so it is very possible to reproduce the example of Compound in DeFi. The governance proposals he uses for voting are not in text form, but are submitted in code that can be directly executed by the computer. After the vote is passed, the governance contract will be automatically deployed according to the written logic. This purely on-chain governance process can eliminate the trust assumption that the team strictly enforces the voting results, and achieves a true sense of trustlessness.
    

The ideal is beautiful, but so are the difficulties. The core bottleneck lies in the low performance of the blockchain and the difficulty of developing smart contracts in game logic.

From a certain point of view, the current DeGame is trapped in the traditional blockchain system, looking for gameplay in a limited cage, and we will find an opportunity to talk about it in the future.

### The final

Although looking back on this unexciting chain game exploration process brings a little pessimism, objectively speaking, the attempts of most games are incomplete.

Many of the Ponzi GameFi kits that came out in 2021 were built and launched within three months.

Many P2E games in 2022 can be designed, developed and operated in as little as 6 months.

How reliable are the conclusions based on such market trials? A good MMO game often requires a longer period of design and polishing, and constantly adjusts parameters during operation to achieve a dynamic balance in terms of in-game economy, character props/attributes, etc.

There is neither a fun game nor a suitable player group, so how can we expect to have a good game that breaks the circle?

Therefore, when we build a Web3 project, its core goal should not be simply to chain assets or issue coins, but to use blockchain technology to better solve trust problems that were difficult to solve before. In games, we need to trust opponents The game account and assets in web2 actually belong to the farce of the project party, and the game party must trust the game party. The fundamental basis of the value of web3 is to start from reducing the cost of trust.

You are welcome to leave a message to the author from the backstage of the official account to discuss issues in the web3 industry

Like and follow 14, bring you value from a technical perspective

![](https://storage.googleapis.com/papyrus_images/b48f70bbbea572ee015d69b3cc0cb9b004349b41bd23b1e91ba285c352944d08.png)

---

*Originally published on [shisi.eth](https://paragraph.com/@shisi-eth/experience-web3-unity-and-review-gamefi-s-exploration-path)*
