public ClientResourceLocator Clone(string?newFileSearchDirectory = null) { var result = new ClientResourceLocator(newFileSearchDirectory ?? FileSearchDirectory, FallbackMaterialName); foreach (var loader in m_resourceLoaders) { result.AddManifestResourceLoader(loader); } return(result); }
static ClientResourceLocator() { Default = new ClientResourceLocator(null, "materials/basic"); Default.AddManifestResourceLoader(ManifestResourceLoader.GetResourceLoader(typeof(ClientResourceLocator).Assembly, "theori.Resources")); }