◆ ExtractAndSaveFileFromDLL()

static bool ExtractAndSaveFileFromDLL ( Assembly  dllAssembly,
string  filename,
string  assetPath,
string  dllNamespace,
bool  logToConsole = false 
)
static
Parameters
filenamefile name of the image in the dll, and the filename it will be given when extracted from the DLL and saved in the file-system.
dllAssemblyAssembly that references the DLL in which the file is embedded.
assetPathpath, within the Asset Folder(do not include initial slash, nor "assets\\"), where the file will be stored after extraction. Folder will be created if it does not exist
dllNamespaceNamespace the asset is assigned to the file to extract, in the DLL. (This value is defined in the project that compiled the dll.)
logToConsolePass true if informational log info should be output to the unity console. Omit, or pass false to see only warnings in the console.
Returns
Returns false if the dll, or the file embedded in it, could not be found. True otherwise.

References ExtractEmbededFiles.ExtractFileToByteArray(), ExtractEmbededFiles.FileOrUnzippedFileExists(), ExtractEmbededFiles.FixPath(), and Zipper.UnzipBytes().

+ Here is the call graph for this function: