◆ ExtractFileToString()

static string ExtractFileToString ( Assembly  dllAssembly,
string  filename,
string  dllNamespace,
bool  logToConsole = false 
)
static
Parameters
filenamefile name of the image in the dll
dllAssemblyAssembly that references the DLL in which the file is embedded.
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
a string representing the data found inside the file. returns null if the file was not found embedded in the specified dll.

References ExtractEmbededFiles.ExtractFileToByteArray().

+ Here is the call graph for this function: