• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

filipepolizel/unity-nft-storage: A client for "nft.storage" and " ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

filipepolizel/unity-nft-storage

开源软件地址:

https://github.com/filipepolizel/unity-nft-storage

开源编程语言:

C# 82.3%

开源软件介绍:

Unity NFT Storage Client

This repository contains a self-contained nft.storage client library fully compatible with Unity Engine.

Setup

For using this library, just copy the NFTStorageClient.cs source code file to your Unity project, preferably alongside other scripts. As any regular Unity C# script, the main class defined in this library inherits Unity's MonoBehaviour class.

Usage

Anyone registered to nft.storage (an API key is required) can use this library to store and persist game assets using IPFS system. Please check nft.storage docs for additional details.

The client library code is available in NFTStorageClient.cs, and contains the following public methods:

  • SetApiToken: Configure nft.storage API token
  • ListFiles: List all NFT uploaded files
  • GetFile: Retrieve details on a specific uploaded file
  • GetFileData: Retrieve data from a specific uploaded file
  • CheckFile: Perform a integrity check on a specific uploaded file
  • DeleteFile: Delete a specific uploaded file
  • UploadDataFromString: Uploads a new file based on a data string
  • UploadDataFromFile: Uploads a new file based on the path from the local file system

Example Usage

This repository also contains an example game developed in Unity, and using the nft.storage client library. All the source code for the game can be found in the folder FungibleZombies.

Special Thanks

For the development of Fungible Zombies (example code), some assets from 3rd parties were imported from Unity Store and used within the game.

For that reason, I would like to thank the collaborators which made these assets available to the community:

License

This code is distributed using MIT license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap