mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 04:54:17 -05:00
Manually assigned extensionsUsed
This commit is contained in:
parent
7c806fb5fd
commit
c6791df596
|
|
@ -14,7 +14,9 @@ namespace VRM
|
|||
}
|
||||
|
||||
public VRMExporter(glTF gltf) : base(gltf)
|
||||
{ }
|
||||
{
|
||||
gltf.extensionsUsed.Add(glTF_VRM_extensions.ExtensionName);
|
||||
}
|
||||
|
||||
public new static glTF Export(GameObject go)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,18 +5,6 @@ using UniJSON;
|
|||
|
||||
namespace UniGLTF
|
||||
{
|
||||
public partial class glTFUsedExtensions
|
||||
{
|
||||
[UsedExtension]
|
||||
static string VRMGetUsedExtension
|
||||
{
|
||||
get
|
||||
{
|
||||
return "VRM";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class glTF_extensions : ExtensionsBase<glTF_extensions>
|
||||
{
|
||||
public VRM.glTF_VRM_extensions VRM = new VRM.glTF_VRM_extensions();
|
||||
|
|
@ -38,6 +26,14 @@ VRM extension is for 3d humanoid avatars (and models) in VR applications.
|
|||
")]
|
||||
public class glTF_VRM_extensions : JsonSerializableBase
|
||||
{
|
||||
public static string ExtensionName
|
||||
{
|
||||
get
|
||||
{
|
||||
return "VRM";
|
||||
}
|
||||
}
|
||||
|
||||
[JsonSchema(Description = @"Version of exporter that vrm created. " + VRMVersion.VRM_VERSION)]
|
||||
public string exporterVersion = "UniVRM-" + VRMVersion.VERSION;
|
||||
|
||||
|
|
|
|||
2
UniGLTF
2
UniGLTF
|
|
@ -1 +1 @@
|
|||
Subproject commit 871137c94e8c288c8cabe3d3d48ef42fcdf5c087
|
||||
Subproject commit fb2fa4f1b6f2ed39f65f5235b14a10ab1f8db3df
|
||||
Loading…
Reference in New Issue
Block a user