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.
virtual override UnitySyncStreamReaderOpenFile(string path)
Opens the file at the provided path if it exists.

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.
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.

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.

function OpenFile

virtual override UnitySyncStreamReader OpenFile(
    string path
)

Opens the file at the provided path if it exists.

Parameters:

  • path The path to the file.

Return: A UnitySyncStreamReader object at the provided path.

Reimplements: cohtml.Net.UnityFileSystemReader.OpenFile

Public Property Documentation

property Reader

static FileReader Reader;

Returns a Singleton instance of the current FileReader.