Method IsStreamingAssets
IsStreamingAssets(string)
True when path is inside streamingAssetsPath.
This - not the platform - is the distinction that decides how a path is read: on desktop and in the editor StreamingAssets is a real directory, while on WebGL and Android it is a URL that only UnityWebRequest can open. Everything else (notably persistentDataPath, where mods, saves and compiled scripts live) is a real file system on every platform, WebGL included, so plain File IO is correct and stays.
public static bool IsStreamingAssets(string path)
Parameters
pathstring