OpenParable
Skip to content
← Back to skills

F8 Tools Streamingassets Loader Workflow

Development
f8-tools-streamingassets-loader-workflow

F8 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  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

// 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

ErrorCauseSolution
File not found on AndroidPath case sensitivityEnsure exact case match
Resource leakNot calling Close()Always call Close() after reading
Read fail on WebGLDifferent file access modelUse UnityWebRequest for WebGL

Output checklist

  • StreamingAssets path verified.
  • Platform-specific access pattern used.
  • Resources properly released.