Files
2025-11-30 08:35:03 +02:00

27 lines
511 B
C#

using GLTF.Schema;
using Newtonsoft.Json.Linq;
namespace Needle.Engine.Gltf.UnityGltf
{
public readonly struct UnityGltfOpaqueExtension : IExtension
{
private readonly string name;
private readonly JObject obj;
public UnityGltfOpaqueExtension(string name, JObject obj)
{
this.name = name;
this.obj = obj;
}
public JProperty Serialize()
{
return new JProperty(name, obj);
}
public IExtension Clone(GLTFRoot root)
{
return new UnityGltfOpaqueExtension(name, obj);
}
}
}