Skip to main content

f8-tools-streamingassets-loader-workflow

Use when working with StreamingAssets Loader tools — sync reading of StreamingAssets files, especially on Android in F8Framework.

설치로 이동

소스 정보

저장소
TippingGame/F8Framework
최근 소스 활동
2026년 4월 1일 11:00
감지된 SKILL.md 언어
영어
스타
882
포크
140

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
f8-tools-streamingassets-loader-workflow
description
Use when working with StreamingAssets Loader tools — sync reading of StreamingAssets files, especially on Android in F8Framework.
# StreamingAssets Loader Tools Workflow ## Use this skill when - The task involves reading files from StreamingAssets directory. - The user needs to access StreamingAssets on Android (where files are inside APK). - Troubleshooting unable to read StreamingAssets files on mobile. ## Path resolution 1. Source: Assets/F8Framework/Runtime/Utility/StreamingAssetsHelper/ ## Sources of truth - Source directory: Assets/F8Framework/Runtime/Utility/StreamingAssetsHelper - Key class: SyncStreamingAssetsLoader ## Key capabilities - Synchronous file reading from StreamingAssets - Android APK StreamingAssets access (via ZipFile reading) - Cross-platform consistent file access - File content reading (text, lines, bytes) ## API quick reference ```csharp // Sync read all lines from StreamingAssets/config/ string[] files = SyncStreamingAssetsLoader.Instance.ReadAllLines("config/fileindex.txt"); // Release resources after use SyncStreamingAssetsLoader.Instance.Close(); ``` ## Workflow 1. Use `SyncStreamingAssetsLoader` for reading StreamingAssets files. 2. On Android, uses ICSharpCode.SharpZipLib.Zip to read from APK directly. 3. Call `Close()` after reading to release resources. 4. On other platforms, reads directly from file system. ## Common error handling | Error | Cause | Solution | |-------|-------|----------| | File not found on Android | Path case sensitivity | Ensure exact case match | | Resource leak | Not calling Close() | Always call Close() after reading | | Read fail on WebGL | Different file access model | Use UnityWebRequest for WebGL | ## Output checklist - StreamingAssets path verified. - Platform-specific access pattern used. - Resources properly released.
GitHub에서 보기