This commit is contained in:
ousttrue
2023-12-12 15:48:23 +09:00
parent 06d77d6d6e
commit 197efa5fb2
2 changed files with 8 additions and 7 deletions

View File

@@ -28,7 +28,8 @@ namespace VRM
{
foreach (var x in destroy)
{
Debug.LogFormat("destroy: {0}", x.name);
// x.name がエラーを引き起こす場合がある
// Debug.LogFormat("destroy: {0}", x.name);
GameObject.DestroyImmediate(x);
}
}

View File

@@ -1,4 +1,5 @@
using System;
using System.IO;
using NUnit.Framework;
using UniGLTF;
@@ -34,8 +35,8 @@ namespace VRM
var lookAt = go.AddComponent<VRMLookAtBlendShapeApplyer>();
var settings = (VRMExportSettings)ScriptableObject.CreateInstance<VRMExportSettings>();
settings.PoseFreeze = true;
bytes = VRMEditorExporter.Export(go, null, settings);
}
bytes = VRMEditorExporter.Export(go, null, settings);
}
using (var data2 = new GlbLowLevelParser(AliciaPath, bytes).Parse())
using (var loader2 = new VRMImporterContext(new VRMData(data2)))
@@ -60,10 +61,9 @@ namespace VRM
var fp = go.GetComponent<VRMFirstPerson>();
var lookAt = go.GetComponent<VRMLookAtBoneApplyer>();
horizontalInner = lookAt.HorizontalInner;
bytes = VRMEditorExporter.Export(go, null, new VRMExportSettings
{
PoseFreeze = true,
});
var settings = ScriptableObject.CreateInstance<VRMExportSettings>();
settings.PoseFreeze = true;
bytes = VRMEditorExporter.Export(go, null, settings);
}
using (var data2 = new GlbLowLevelParser(AliciaPath, bytes).Parse())