diff --git a/Assets/VRM/Samples~/SimpleViewer/ViewerUI.cs b/Assets/VRM/Samples~/SimpleViewer/ViewerUI.cs index 893d31ead6..04942584aa 100644 --- a/Assets/VRM/Samples~/SimpleViewer/ViewerUI.cs +++ b/Assets/VRM/Samples~/SimpleViewer/ViewerUI.cs @@ -226,7 +226,10 @@ private void LoadMotion(string path, string source) context.Parse(path, source); context.Load(); m_src = context.Root.GetComponent(); - m_src.GetComponent().enabled = false; + if (m_src == null) + { + throw new ArgumentNullException(); + } m_loaded?.EnableBvh(m_src); }