public void BlendShapeGroupTest() { var model = new glTF_VRM_BlendShapeGroup() { presetName = "neutral", }; var json = model.ToJson(); Assert.AreEqual(@"{""presetName"":""neutral"",""binds"":[],""materialValues"":[],""isBinary"":false}", json); Debug.Log(json); }
public void BlendShapeGroupTest() { var model = new glTF_VRM_BlendShapeGroup() { presetName = "neutral", }; var json = model.ToJson(); Assert.AreEqual(@"{""presetName"":""neutral"",""isBinary"":false,""binds"":[],""materialValues"":[]}", json); Debug.Log(json); var c = new JsonSchemaValidationContext("") { EnableDiagnosisForNotRequiredFields = true, }; var json2 = JsonSchema.FromType <glTF_VRM_BlendShapeGroup>().Serialize(model, c); Assert.AreEqual(@"{""presetName"":""neutral"",""binds"":[],""materialValues"":[],""isBinary"":false}", json2); }