mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 07:42:25 -05:00
Updated JsonSchema of vrm.blendshape.bind #63
This commit is contained in:
@@ -27,8 +27,13 @@ namespace VRM
|
||||
[JsonSchema(Title = "vrm.blendshape.bind")]
|
||||
public class glTF_VRM_BlendShapeBind : UniGLTF.JsonSerializableBase
|
||||
{
|
||||
[JsonSchema(Required = true, Minimum = 0)]
|
||||
public int mesh = -1;
|
||||
|
||||
[JsonSchema(Required = true, Minimum = 0)]
|
||||
public int index = -1;
|
||||
|
||||
[JsonSchema(Required =true, Minimum = 0, Maximum = 100, Description = @"SkinnedMeshRenderer.SetBlendShapeWeight")]
|
||||
public float weight = 0;
|
||||
|
||||
protected override void SerializeMembers(GLTFJsonFormatter f)
|
||||
|
||||
2
UniGLTF
2
UniGLTF
Submodule UniGLTF updated: 71188cbb88...94a186fd65
@@ -3,13 +3,18 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mesh": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"index": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"weight": {
|
||||
"type": "number"
|
||||
"description": "SkinnedMeshRenderer.SetBlendShapeWeight",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 100
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,10 @@
|
||||
"items": {
|
||||
"$ref": "vrm.blendshape.materialbind.schema.json"
|
||||
}
|
||||
},
|
||||
"isBinary": {
|
||||
"description": "0 or 1. Do not allow an intermediate value. Value should rounded",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"firstPersonBone": {
|
||||
"description": "Specify a bone whose rendering mode should be switched in first-person view. Usually Head is specified.",
|
||||
"description": "The bone whose rendering should be turned off in first-person view. Usually Head is specified.",
|
||||
"type": "integer"
|
||||
},
|
||||
"firstPersonBoneOffset": {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"exporterVersion": {
|
||||
"description": "Version of exporter that vrm created. UniVRM-0.44",
|
||||
"description": "Version of exporter that vrm created. UniVRM-0.46",
|
||||
"type": "string"
|
||||
},
|
||||
"meta": {
|
||||
|
||||
Reference in New Issue
Block a user