diff --git a/Assets/VRM/UniGLTF/Editor/Tests/UniGLTFTests.cs b/Assets/VRM/UniGLTF/Editor/Tests/UniGLTFTests.cs index b9d567742..d46ed821f 100644 --- a/Assets/VRM/UniGLTF/Editor/Tests/UniGLTFTests.cs +++ b/Assets/VRM/UniGLTF/Editor/Tests/UniGLTFTests.cs @@ -667,5 +667,31 @@ namespace UniGLTF GameObject.DestroyImmediate(go); } } + + [Serializable] + class CantConstruct + { + public bool Value = true; + + public CantConstruct(bool value) + { + throw new Exception(); + } + } + + [Serializable] + class Dummy + { + public CantConstruct Value; + } + + + [Test] + public void JsonUtilityTest() + { + var dummy = JsonUtility.FromJson("{}"); + Assert.NotNull(dummy.Value); + Assert.False(dummy.Value.Value); + } } }