Merge pull request #1859 from 0b5vr/export-with-meta

feature: add third argument `vrmMeta` to static Vrm10Exporter.Export
This commit is contained in:
ousttrue
2022-10-11 18:37:28 +09:00
committed by GitHub

View File

@@ -772,7 +772,7 @@ namespace UniVRM10
/// <param name="go"></param>
/// <param name="getTextureBytes"></param>
/// <returns></returns>
public static byte[] Export(GameObject go, ITextureSerializer textureSerializer = null)
public static byte[] Export(GameObject go, ITextureSerializer textureSerializer = null, VRM10ObjectMeta vrmMeta = null)
{
using (var arrayManager = new NativeArrayManager())
{
@@ -788,7 +788,7 @@ namespace UniVRM10
var option = new VrmLib.ExportArgs
{
};
exporter10.Export(go, model, converter, option);
exporter10.Export(go, model, converter, option, vrmMeta);
return exporter10.Storage.ToGlbBytes();
}
}