public static void AutoNameAction(SkillStateAction action)
 {
     if (action == null)
     {
         return;
     }
     SkillEditor.RegisterUndo("Auto Name Action");
     action.set_IsAutoNamed(!action.get_IsAutoNamed());
     action.set_Name(action.get_IsAutoNamed() ? action.AutoName() : null);
     SkillEditor.SaveActions();
     SkillEditor.SetFsmDirty();
 }