WIP reload timing

This commit is contained in:
ousttrue 2021-06-18 21:04:40 +09:00
parent 682bde5289
commit e04ac65bf5
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.Experimental.AssetImporters;
using UnityEngine;
using VRMShaders;
namespace UniGLTF
@ -51,6 +52,8 @@ namespace UniGLTF
return new SubAssetPair(x, null);
}
}).ToArray();
Debug.Log($"RemapEditorBase: {m_keyValues}");
}
void RemapAndReload<T>(ScriptedImporter self, UnityEditor.AssetImporter.SourceAssetIdentifier sourceAssetIdentifier, T obj) where T : UnityEngine.Object

View File

@ -44,6 +44,9 @@ namespace UniVRM10
m_model = ModelReader.Read(result.Parser);
var externalObjectMap = m_importer.GetExternalObjectMap();
var tmp = m_importer.GetExternalObjectMap();
var generator = new Vrm10MaterialDescriptorGenerator();
var materialKeys = m_parser.GLTF.materials.Select((x, i) => generator.Get(m_parser, i).SubAssetKey);
var textureKeys = new GltfTextureDescriptorGenerator(m_parser).Get().GetEnumerable().Select(x => x.SubAssetKey);