mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 13:04:17 -05:00
33 lines
794 B
C#
33 lines
794 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UniJSON;
|
|
|
|
|
|
namespace UniGLTF
|
|
{
|
|
/// <summary>
|
|
/// https://github.com/KhronosGroup/glTF/issues/1036
|
|
/// </summary>
|
|
[Serializable]
|
|
public partial class glTFPrimitives_extras : ExtraBase<glTFPrimitives_extras>
|
|
{
|
|
[JsonSchema(Required = true, MinItems = 1)]
|
|
public List<string> targetNames = new List<string>();
|
|
|
|
[JsonSerializeMembers]
|
|
void PrimitiveMembers(GLTFJsonFormatter f)
|
|
{
|
|
if (targetNames.Count > 0)
|
|
{
|
|
f.Key("targetNames");
|
|
f.BeginList();
|
|
foreach (var x in targetNames)
|
|
{
|
|
f.Value(x);
|
|
}
|
|
f.EndList();
|
|
}
|
|
}
|
|
}
|
|
}
|