DIFF

class ResourceManagersealedWORKBENCH

ResourceManager › WBModuleDef

Methods 5

proto external MetaFile GetMetaFile(string absFilePath)WORKBENCH
proto external bool RegisterResourceFile(string absFilePath, bool bBuildRuntimeResource)WORKBENCH

Register register resource (create meta file) and optionally also build runtime resource. Usage:

// register resource
ResourceManager rm = Workbench.GetModule(ResourceManager);
rm.RegisterResourceFile("c:\\DATA\\UI\\Imagesets\\Test\\Test.tga", true);
proto external void RebuildResourceFile(string filePath, string configuration, bool selectFiles)WORKBENCH

Rebuild already registered resource. Usage:

rm.RebuildResourceFiles({"UI\\Imagesets\\Test\\Test.tga"}, "PC");
proto external void RebuildResourceFiles(notnull array<string> filePaths, string configuration)WORKBENCH

Rebuild already registered resources. Usage:

rm.RebuildResourceFiles({"UI\\Imagesets\\Test\\Test.tga"}, "PC");
proto external bool WaitForFile(string filePath, int maxTimeMs = 1000)WORKBENCH

Waits for file to be acknowledged by Resource Database. Returns true if the file is ready, otherwise returns false due to time out.