mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-19 05:27:21 -05:00
WIP reload timing
This commit is contained in:
parent
682bde5289
commit
e04ac65bf5
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user