AcTools.Kn5File.Kn5.FromDirectory_Materials C# (CSharp) Method

FromDirectory_Materials() private method

private FromDirectory_Materials ( string dir ) : void
dir string
return void
        private void FromDirectory_Materials(string dir) {
            Materials = FromMaterialsJson(Path.Combine(dir, "materials.json"));
        }

Usage Example

Exemplo n.º 1
0
        public static Kn5 FromDirectory(string dir, bool jsonMode) {
            if (!Directory.Exists(dir)) {
                throw new DirectoryNotFoundException(dir);
            }

            var kn5 = new Kn5(dir);
            
            kn5.FromDirectory_Header(dir);
            kn5.FromDirectory_Textures(dir);
            kn5.FromDirectory_Materials(dir);
            kn5.FromDirectory_Nodes(dir, jsonMode);

            return kn5;
        }
All Usage Examples Of AcTools.Kn5File.Kn5::FromDirectory_Materials