示例#1
0
        public List <string> CollectAllTextureNames()
        {
            List <string> TextureNames = new List <string>();

            for (int i = 0; i != materials.Count; i++)
            {
                for (int d = 0; d != materials[i].Length; d++)
                {
                    IMaterial FoundMaterial = MaterialsManager.LookupMaterialByHash(materials[i][d].MaterialHash);
                    if (FoundMaterial != null)
                    {
                        List <string> CollectedFromMaterial = FoundMaterial.CollectTextures();
                        if (CollectedFromMaterial != null)
                        {
                            TextureNames.AddRange(CollectedFromMaterial);
                        }
                    }
                }
            }

            return(TextureNames);
        }