mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-07 11:28:35 -05:00
Updated UniGLTF
This commit is contained in:
@@ -61,7 +61,7 @@ public class VRMTest
|
||||
// import
|
||||
context.ParseJson(gltf.ToJson(), new SimpleStorage());
|
||||
Debug.LogFormat("{0}", context.Json);
|
||||
gltfImporter.Import(context);
|
||||
gltfImporter.Load(context);
|
||||
|
||||
AssertAreEqual(go.transform, context.Root.transform);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace UniGLTF
|
||||
}
|
||||
}
|
||||
|
||||
public partial class glTF_extensions : JsonSerializableBase
|
||||
public partial class glTF_extensions : ExtensionBase
|
||||
{
|
||||
public VRM.glTF_VRM_extensions VRM = new VRM.glTF_VRM_extensions();
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace VRM
|
||||
{
|
||||
context.CreateMaterial = VRMImporter.GetMaterialFunc(glTF_VRM_Material.Parse(context.Json));
|
||||
|
||||
gltfImporter.Import(context);
|
||||
gltfImporter.Load(context);
|
||||
if (string.IsNullOrEmpty(context.Path))
|
||||
{
|
||||
if (string.IsNullOrEmpty(context.GLTF.extensions.VRM.meta.title))
|
||||
|
||||
Reference in New Issue
Block a user