UnityObject だし

This commit is contained in:
ousttrue 2021-11-24 21:54:02 +09:00
parent 4533a7f0bf
commit f4120c7722

View File

@ -47,7 +47,11 @@ namespace UniVRM10
public override void OnToolGUI(EditorWindow window)
{
var root = Selection.activeTransform?.GetComponent<Vrm10Instance>();
if (Selection.activeTransform == null)
{
return;
}
var root = Selection.activeTransform.GetComponent<Vrm10Instance>();
if (root == null)
{
return;