FileUtil Class

Description

File utility.


Methods

LoadFile

C#

public static System.Collections.IEnumerator LoadFile(string filePath, PathType filePathType, Action< Buffer > onLoad)

Async Load file and return Buffer object in the callback.

LoadFile

C#

public static System.Collections.IEnumerator LoadFile(string filePath, PathType filePathType, Action<byte[]> onLoad, Action<string> onError = null)

Async Load file and return byte array in the callback.

PathToUrl

C#

public static string PathToUrl(string path)

Convert file path to URL.