MySys22.DialogueSystem
Document
1.0
Engine
0.5 BETA
Editor
0.5 BETA
Updated
2026-09-28

9. Cross-platform support

The DialogueStreamingAssets class is divided by compilation:

#if UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL
    private const bool StreamingPlatform = true;
#else
    private const bool StreamingPlatform = false;
#endif

public static bool RequiresAsync => ForceAsync || (!Application.isEditor && StreamingPlatform);
PlatformFile accessNotes
Windows / Linux / macOS standalonedirect File / Directorythe manifest.txt files are ignored
Android / iOSUnityWebRequest with URL jar:file://…!/assets/…mandatory indices, asynchronous init
WebGLUnityWebRequest with http URLmandatory indices, no writing to disk

Since the constant is declared const, the compiler eliminates the useless branch: a desktop build does not contain the jar:/http: code, while a mobile build does not contain the direct I/O. Application.isEditor keeps the play mode in Unity on the direct access path even with an Android build target.

The following consequences arise:


12. Build process

  1. Deployment: Inject from the Java editor (or deploy from the CLI).
  1. Indices: MySys22 ▸ Dialogue ▸ Generate Index Manifests (mandatory before a mobile build,

optional on desktop).

  1. AOT: Generate AOT link.xml if IL2CPP is used.
  1. Build: Unity Build Settings according to the usual procedure.

With regard to distribution, the engine is a folder inside Assets and does not require packaging; the editor is distributed by means of --release (portable) or by means of app-image / deb / dmg / msi.