Table of Contents

Property StreamingAssetsRoot

Namespace
GrindFest.Content
Assembly
GrindFest.dll

StreamingAssetsRoot

StreamingAssets as this platform actually exposes it.

On desktop and in the editor that is the real folder. In a browser it is not the http:// URL streamingAssetsPath returns: it is the preloaded virtual file system, and the difference is the whole reason the Web player used to stall on a white screen at 100 %.

A file that the build listed in its preload manifest (ContentDirectoryBuildProcessor) is readable with plain File IO at /vfs_streamingassets/<path>. A URL is not readable that way, and every path here — the definition JSONs especially — is read with plain File IO unless NeedsWebRequest(string) says otherwise. Probing a directory URL answers 404 (no web server lists directories), so the base package used to be dropped entirely, ContentDB merged zero definitions, and everything that resolves an asset by name (world generation's Water Plane, Orc Camp, Area, …) missed for the whole session.

public static string StreamingAssetsRoot { get; }

Property Value

string