mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-25 12:28:43 -05:00
29 lines
605 B
C#
29 lines
605 B
C#
using System;
|
|
using UniJSON;
|
|
|
|
namespace UniGLTF
|
|
{
|
|
[Serializable]
|
|
public class glTFAssets
|
|
{
|
|
public string generator;
|
|
|
|
[JsonSchema(Required = true, Pattern = "^[0-9]+\\.[0-9]+$")]
|
|
public string version;
|
|
|
|
public string copyright;
|
|
|
|
[JsonSchema(Pattern = "^[0-9]+\\.[0-9]+$")]
|
|
public string minVersion;
|
|
|
|
// empty schemas
|
|
public object extensions;
|
|
public object extras;
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("GLTF-{0} generated by {1}", version, generator);
|
|
}
|
|
}
|
|
}
|