F8 Tools Streamingassets Loader Workflow
Developmentf8-tools-streamingassets-loader-workflowF8 Tools Streamingassets Loader Workflow is an Agent Skill for development published in the TippingGame/F8Framework repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when working with StreamingAssets Loader tools — sync reading of StreamingAssets files, especially on Android in F8Framework.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TippingGame/F8Framework/blob/HEAD/Tests/AISkills/f8framework-skills/tools/f8-tools-streamingassets-loader-workflow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/f8-tools-streamingassets-loader-workflow, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
- 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
// Sync read all lines from StreamingAssets/config/
string[] files = SyncStreamingAssetsLoader.Instance.ReadAllLines("config/fileindex.txt");
// Release resources after use
SyncStreamingAssetsLoader.Instance.Close();
Workflow
- Use
SyncStreamingAssetsLoaderfor reading StreamingAssets files. - On Android, uses ICSharpCode.SharpZipLib.Zip to read from APK directly.
- Call
Close()after reading to release resources. - 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.