{"id":21358870,"url":"https://github.com/gameframex/com.gameframex.unity.readassets","last_synced_at":"2025-12-24T05:35:23.627Z","repository":{"id":102917926,"uuid":"385161249","full_name":"GameFrameX/com.gameframex.unity.readassets","owner":"GameFrameX","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-23T10:21:45.000Z","size":349,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-23T12:29:09.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GameFrameX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-12T07:27:27.000Z","updated_at":"2024-07-23T12:29:14.189Z","dependencies_parsed_at":"2023-12-09T06:32:10.306Z","dependency_job_id":"a30feb2e-8573-4622-96b5-1e7db41e45a5","html_url":"https://github.com/GameFrameX/com.gameframex.unity.readassets","commit_stats":null,"previous_names":["alianblank/com.alianblank.gameframex.unity.readassets","gameframex/com.gameframex.unity.readassets"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.readassets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.readassets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.readassets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameFrameX%2Fcom.gameframex.unity.readassets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GameFrameX","download_url":"https://codeload.github.com/GameFrameX/com.gameframex.unity.readassets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225847366,"owners_count":17533623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T05:22:42.327Z","updated_at":"2025-12-24T05:35:23.588Z","avatar_url":"https://github.com/GameFrameX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介\r\n\r\nUnity 中通过非 `WWW` 的方式读取 `StreamingAssets` 下的文件\r\n\r\n该库主要服务于 `https://github.com/AlianBlank/GameFrameX` 作为子库使用。\r\n\r\n# 使用方式(三种方式)\r\n\r\n1. 直接在 `manifest.json` 文件中添加以下内容\r\n   ```json\r\n      {\"com.gameframex.unity.readassets\": \"https://github.com/AlianBlank/com.gameframex.unity.readassets.git\"}\r\n    ```\r\n2. 在Unity 的`Packages Manager` 中使用`Git URL` 的方式添加库,地址为：https://github.com/AlianBlank/com.gameframex.unity.readassets.git\r\n\r\n3. 直接下载仓库放置到Unity 项目的`Packages` 目录下。会自动加载识别\r\n\r\n# 使用方式\r\n\r\n## `传入路径为相对目录`\r\n\r\n- ReadBuffer 读取Byte[] 数组\r\n\r\n```\r\n byte[] buffer = BlankReadAssets.Read(string path)\r\n```\r\n\r\n- IsFileExists 文件是否存在\r\n\r\n```\r\n bool isFileExists = BlankReadAssets.IsFileExists(string path)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.readassets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.readassets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameframex%2Fcom.gameframex.unity.readassets/lists"}