Detailed Description

Looks for and compiles Nitro script ahead of time for iOS. The Nitro can be located in any .html file.

Inheritance diagram for PowerUI.NitroAOT:

Static Public Member Functions

static void OnPostprocessAllAssets (string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
 
static void Compile (string htmlFile)
 AOT compiles the given HTML file. It gets searched for any Nitro, and a DLL may be generated from it. More...
 
static void FindHtmlAssets (string[] fileSet, ref List< string > allFoundFiles)
 
static void DeleteAll ()
 Deletes all precompiled files. More...
 
static void CompileAll ()
 AOT compiles all .html files found in Assets. The result goes into a DLL named after the file. The class name inside the DLL is based on the script string, which is available to the runtime. More...
 
static void CompileAll (string inDirectory)
 AOT compiles all .html files found in Assets. The result goes into a DLL named after the file. The class name inside the DLL is based on the script string, which is available to the runtime. More...
 

Static Private Member Functions

static void DeleteAll (string inDirectory)
 Deletes all Nitro precompiled files in the given directory. More...
 
static void OnAotFileExists (string path)
 Called by wrench when an AOT DLL already exists. Unity requires AssetDatabase to be used to handle this. More...
 

Member Function Documentation

static void PowerUI.NitroAOT.Compile ( string  htmlFile)
inlinestatic

AOT compiles the given HTML file. It gets searched for any Nitro, and a DLL may be generated from it.

Parameters
htmlFileThe path to a html file.
static void PowerUI.NitroAOT.CompileAll ( )
inlinestatic

AOT compiles all .html files found in Assets. The result goes into a DLL named after the file. The class name inside the DLL is based on the script string, which is available to the runtime.

static void PowerUI.NitroAOT.CompileAll ( string  inDirectory)
inlinestatic

AOT compiles all .html files found in Assets. The result goes into a DLL named after the file. The class name inside the DLL is based on the script string, which is available to the runtime.

Parameters
inDirectoryThe directory to search in.
static void PowerUI.NitroAOT.DeleteAll ( )
inlinestatic

Deletes all precompiled files.

static void PowerUI.NitroAOT.DeleteAll ( string  inDirectory)
inlinestaticprivate

Deletes all Nitro precompiled files in the given directory.

static void PowerUI.NitroAOT.FindHtmlAssets ( string[]  fileSet,
ref List< string >  allFoundFiles 
)
inlinestatic
static void PowerUI.NitroAOT.OnAotFileExists ( string  path)
inlinestaticprivate

Called by wrench when an AOT DLL already exists. Unity requires AssetDatabase to be used to handle this.

static void PowerUI.NitroAOT.OnPostprocessAllAssets ( string[]  importedAssets,
string[]  deletedAssets,
string[]  movedAssets,
string[]  movedFromAssetPaths 
)
inlinestatic