GLTFAsset.cs 841 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Newtonsoft.Json;
  5. using UnityEngine;
  6. using UnityEngine.Scripting;
  7. namespace Siccity.GLTFUtility {
  8. // https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#asset-1
  9. /// <summary> Metadata about the glTF asset </summary>
  10. [Preserve] public class GLTFAsset {
  11. /// <summary> A copyright message suitable for display to credit the content creator. </summary>
  12. public string copyright;
  13. /// <summary> Tool that generated this glTF model. Useful for debugging. </summary>
  14. public string generator;
  15. /// <summary> The glTF version that this asset targets. </summary>
  16. [JsonProperty(Required = Required.Always)] public string version;
  17. /// <summary> The minimum glTF version that this asset targets. </summary>
  18. public string minVersion;
  19. }
  20. }