cohtml.FileReader

Helper class providing functionality to read files.

Inherits from cohtml.Net.UnityFileSystemReader, cohtml.Net.IFileSystemReader, cohtml.Net.IFileManipulator, SystemIDisposable

Public Functions

Name
voidRegisterPreloadedFonts(IUISystem system)
Reads font files into a TextAsset and registers them via the provided native IUISystem object.

Public Properties

Name
FileReaderReader
Returns a Singleton instance of the current FileReader.

Additional inherited members

Public Functions inherited from cohtml.Net.UnityFileSystemReader

Name
virtual override voidDispose()
virtual boolEnumerateFolder(string path)
Prepares the given folder for enumeration.
virtual stringNextFile()
Returns the name of the i-th file in the current folder.
virtual UnitySyncStreamReaderOpenFile(string path)
Opens the given file for reading.
UnityFileSystemReader()
delegate boolSwigDelegateUnityFileSystemReader_0(string path, global.System.IntPtr swigId)
delegate stringSwigDelegateUnityFileSystemReader_1(global.System.IntPtr swigId)
delegate global.System.IntPtrSwigDelegateUnityFileSystemReader_2(string path, global.System.IntPtr swigId)

Public Functions inherited from cohtml.Net.IFileSystemReader

Name
virtual override voidDispose()

Public Functions inherited from cohtml.Net.IFileManipulator

Name
virtual voidDispose()
virtual boolEnumerateFolder(string path)
Prepares the given folder for enumeration.
virtual stringNextFile()
Returns the name of the i-th file in the current folder.
virtual IStreamReaderOpenFile(string path)
Opens the given file for reading.

Protected Attributes inherited from cohtml.Net.IFileManipulator

Name
boolswigCMemOwn

Public Functions Documentation

function RegisterPreloadedFonts

static void RegisterPreloadedFonts(
    IUISystem system
)

Reads font files into a TextAsset and registers them via the provided native IUISystem object.

Public Property Documentation

property Reader

static FileReader Reader;

Returns a Singleton instance of the current FileReader.