目录
目录README.md

简介

Unity 中通过非 WWW 的方式读取 StreamingAssets 下的文件

该库主要服务于 https://github.com/AlianBlank/GameFrameX 作为子库使用。

使用方式(三种方式)

  1. 直接在 manifest.json 文件中添加以下内容

       {"com.gameframex.unity.readassets": "https://github.com/AlianBlank/com.gameframex.unity.readassets.git"}
  2. 在Unity 的Packages Manager 中使用Git URL 的方式添加库,地址为:https://github.com/AlianBlank/com.gameframex.unity.readassets.git

  3. 直接下载仓库放置到Unity 项目的Packages 目录下。会自动加载识别

使用方式

传入路径为相对目录

  • ReadBuffer 读取Byte[] 数组
 byte[] buffer = BlankReadAssets.Read(string path)
  • IsFileExists 文件是否存在
 bool isFileExists = BlankReadAssets.IsFileExists(string path)
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号