public override void DrawCommandGUI() { Label t = target as Label; FungusScript fungusScript = t.GetFungusScript(); if (fungusScript == null) { return; } serializedObject.Update(); EditorGUILayout.PropertyField(keyProp); keyProp.stringValue = fungusScript.GetUniqueLabelKey(keyProp.stringValue, t); serializedObject.ApplyModifiedProperties(); }