Updated JsonSchema

This commit is contained in:
ousttrue 2018-08-22 14:24:33 +09:00
parent 87d82fd794
commit 6bb7b2b854
20 changed files with 67 additions and 38 deletions

View File

@ -8,7 +8,7 @@ using UniJSON;
namespace VRM
{
[Serializable]
[JsonSchema(Title = "vrm.materialbind")]
[JsonSchema(Title = "vrm.blendshape.materialbind")]
public class glTF_VRM_MaterialValueBind : UniGLTF.JsonSerializableBase
{
public string materialName;
@ -24,7 +24,7 @@ namespace VRM
}
[Serializable]
[JsonSchema(Title = "vrm.blendshapebind")]
[JsonSchema(Title = "vrm.blendshape.bind")]
public class glTF_VRM_BlendShapeBind : UniGLTF.JsonSerializableBase
{
public int mesh = -1;
@ -85,7 +85,7 @@ namespace VRM
}
[Serializable]
[JsonSchema(Title = "vrm.blendshapegroup", Description = "BlendShapeClip of UniVRM")]
[JsonSchema(Title = "vrm.blendshape.group", Description = "BlendShapeClip of UniVRM")]
public class glTF_VRM_BlendShapeGroup : UniGLTF.JsonSerializableBase
{
[JsonSchema(Description = "Expression name")]
@ -128,7 +128,7 @@ namespace VRM
}
[Serializable]
[JsonSchema(Title = "vrm.blendshapemaster", Description = "BlendShapeAvatar of UniVRM")]
[JsonSchema(Title = "vrm.blendshape", Description = "BlendShapeAvatar of UniVRM")]
public class glTF_VRM_BlendShapeMaster : UniGLTF.JsonSerializableBase
{
public List<glTF_VRM_BlendShapeGroup> blendShapeGroups = new List<glTF_VRM_BlendShapeGroup>();

View File

@ -8,7 +8,7 @@ using UniJSON;
namespace VRM
{
[Serializable]
[JsonSchema(Title = "vrm.degreemap")]
[JsonSchema(Title = "vrm.firstperson.degreemap")]
public class glTF_VRM_DegreeMap : UniGLTF.JsonSerializableBase
{
[JsonSchema(Description = "None linear mapping params. time, value, inTangent, outTangent")]
@ -47,6 +47,7 @@ namespace VRM
}
[Serializable]
[JsonSchema(Title = "vrm.firstperson.meshannotation")]
public class glTF_VRM_MeshAnnotation : JsonSerializableBase
{
public int mesh;

View File

@ -89,7 +89,7 @@ namespace VRM
}
[Serializable]
[JsonSchema(Title = "vrm.humanoidbone")]
[JsonSchema(Title = "vrm.humanoid.bone")]
public class glTF_VRM_HumanoidBone : JsonSerializableBase
{
[JsonSchema(Description = "Human bone name.", EnumValues = new object[] {

View File

@ -1,5 +1,5 @@
{
"title": "vrm.blendshapebind",
"title": "vrm.blendshape.bind",
"type": "object",
"properties": {
"mesh": {

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 7d7e602351f4ab24eaad71cc5d8f6945
timeCreated: 1534850992
guid: b2da3d63aa3b59c408d10d28110b14bc
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:

View File

@ -1,5 +1,5 @@
{
"title": "vrm.blendshapegroup",
"title": "vrm.blendshape.group",
"type": "object",
"properties": {
"name": {
@ -15,14 +15,14 @@
"description": "Low level blendshape references.",
"type": "array",
"items": {
"$ref": "vrm.blendshapebind.schema.json"
"$ref": "vrm.blendshape.bind.schema.json"
}
},
"materialValues": {
"description": "Material animation references.",
"type": "array",
"items": {
"$ref": "vrm.materialbind.schema.json"
"$ref": "vrm.blendshape.materialbind.schema.json"
}
}
}

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 7539ff50c232c5d469ec72bb3e0b05e6
timeCreated: 1534859666
guid: 5aed45e7198eecd48b57665cff2b2215
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:

View File

@ -1,5 +1,5 @@
{
"title": "vrm.materialbind",
"title": "vrm.blendshape.materialbind",
"type": "object",
"properties": {
"materialName": {

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: da54af2780f620241a8cb8dac933fa15
timeCreated: 1534861231
guid: b4be71a369e363e40ade2080e715d935
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:

View File

@ -1,11 +1,11 @@
{
"title": "vrm.blendshapemaster",
"title": "vrm.blendshape",
"type": "object",
"properties": {
"blendShapeGroups": {
"type": "array",
"items": {
"$ref": "vrm.blendshapegroup.schema.json"
"$ref": "vrm.blendshape.group.schema.json"
}
}
}

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 00a1e5901b4fb3a468ea24d05ff77855
timeCreated: 1534861231
guid: f11c63275ed687e4dbe1585a5d9e8dbf
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:

View File

@ -1,5 +1,5 @@
{
"title": "vrm.degreemap",
"title": "vrm.firstperson.degreemap",
"description": "Eye controller setting.",
"type": "object",
"properties": {

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b29f5977b30e7cc438ee1cfea74edd6c
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,12 @@
{
"title": "vrm.firstperson.meshannotation",
"type": "object",
"properties": {
"mesh": {
"type": "integer"
},
"firstPersonFlag": {
"type": "string"
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f99b8fd1e3320e4fac4f67ab093452c
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -14,15 +14,7 @@
"description": "Switch on \/ off mesh for display in first-person view, third-person view, or the others.",
"type": "array",
"items": {
"type": "object",
"properties": {
"mesh": {
"type": "integer"
},
"firstPersonFlag": {
"type": "string"
}
}
"$ref": "vrm.firstperson.meshannotation.schema.json"
}
},
"lookAtTypeName": {
@ -31,16 +23,16 @@
"enum": ["Bone","BlendShape"]
},
"lookAtHorizontalInner": {
"$ref": "vrm.degreemap.schema.json"
"$ref": "vrm.firstperson.degreemap.schema.json"
},
"lookAtHorizontalOuter": {
"$ref": "vrm.degreemap.schema.json"
"$ref": "vrm.firstperson.degreemap.schema.json"
},
"lookAtVerticalDown": {
"$ref": "vrm.degreemap.schema.json"
"$ref": "vrm.firstperson.degreemap.schema.json"
},
"lookAtVerticalUp": {
"$ref": "vrm.degreemap.schema.json"
"$ref": "vrm.firstperson.degreemap.schema.json"
}
}
}

View File

@ -1,5 +1,5 @@
{
"title": "vrm.humanoidbone",
"title": "vrm.humanoid.bone",
"type": "object",
"properties": {
"bone": {

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a0058c092f212dd4ca7b9fc313beff40
timeCreated: 1534915424
licenseType: Free
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -5,7 +5,7 @@
"humanBones": {
"type": "array",
"items": {
"$ref": "vrm.humanoidbone.schema.json"
"$ref": "vrm.humanoid.bone.schema.json"
}
},
"armStretch": {

View File

@ -17,7 +17,7 @@
"$ref": "vrm.firstperson.schema.json"
},
"blendShapeMaster": {
"$ref": "vrm.blendshapemaster.schema.json"
"$ref": "vrm.blendshape.schema.json"
},
"secondaryAnimation": {
"$ref": "vrm.secondaryanimation.schema.json"