cohtml.FileReader
Helper class providing functionality to read files.
Inherits from cohtml.Net.UnityFileSystemReader, cohtml.Net.IFileSystemReader, cohtml.Net.IFileManipulator, SystemIDisposable
Public Functions
Name | |
---|---|
void | RegisterPreloadedFonts(IUISystem system) Reads font files into a TextAsset and registers them via the provided native IUISystem object. |
virtual override UnitySyncStreamReader | OpenFile(string path) Opens the file at the provided path if it exists. |
Public Properties
Name | |
---|---|
FileReader | Reader Returns a Singleton instance of the current FileReader. |
Additional inherited members
Public Functions inherited from cohtml.Net.UnityFileSystemReader
Name | |
---|---|
virtual override void | Dispose() |
virtual bool | EnumerateFolder(string path) Prepares the given folder for enumeration. |
virtual string | NextFile() Returns the name of the i-th file in the current folder. |
UnityFileSystemReader() | |
delegate bool | SwigDelegateUnityFileSystemReader_0(string path, global.System.IntPtr swigId) |
delegate string | SwigDelegateUnityFileSystemReader_1(global.System.IntPtr swigId) |
delegate global.System.IntPtr | SwigDelegateUnityFileSystemReader_2(string path, global.System.IntPtr swigId) |
Public Functions inherited from cohtml.Net.IFileSystemReader
Name | |
---|---|
virtual override void | Dispose() |
Public Functions inherited from cohtml.Net.IFileManipulator
Name | |
---|---|
virtual void | Dispose() |
virtual bool | EnumerateFolder(string path) Prepares the given folder for enumeration. |
virtual string | NextFile() Returns the name of the i-th file in the current folder. |
Protected Attributes inherited from cohtml.Net.IFileManipulator
Name | |
---|---|
bool | swigCMemOwn |
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.