mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
Merge pull request #1859 from 0b5vr/export-with-meta
feature: add third argument `vrmMeta` to static Vrm10Exporter.Export
This commit is contained in:
commit
75e9a82ee8
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user