Exemplo n.º 1
0
		public XFileConverter(UnityEngine.Object xfile) {
			filePath = UnityEditor.AssetDatabase.GetAssetPath(xfile);
			folderPath = GetFolderPath();
			fileName = GetFileName();
			
			CreateFolder();
			sr = new StreamReader(filePath);
			matList = new MaterialList(sr);
			
			while (!sr.EndOfStream) {
				Parser(sr.ReadLine());
			}
		}
Exemplo n.º 2
0
        public XFileConverter(UnityEngine.Object xfile)
        {
            filePath   = UnityEditor.AssetDatabase.GetAssetPath(xfile);
            folderPath = GetFolderPath();
            fileName   = GetFileName();

            CreateFolder();
            sr      = new StreamReader(filePath);
            matList = new MaterialList(sr);

            while (!sr.EndOfStream)
            {
                Parser(sr.ReadLine());
            }
        }