/// <summary>
        /// Try to minimize size of data
        /// </summary>
        /// <param name="fsmComponent"></param>
        private static void StripEditorData(PlayMakerFSM fsmComponent)
        {
            if (fsmComponent == null)
            {
                return;
            }

            var fsm = fsmComponent.Fsm;

            if (fsm == null)
            {
                return;
            }

            DebugLog("StripEditorData: " + Labels.GetFullFsmLabelWithInstanceID(fsm), LogColor.Yellow);

#if PM2
            fsm.EditorData = "";
#endif

            fsm.Description = "";
            fsm.Watermark   = "";

            foreach (var state in fsm.States)
            {
                state.Description = "";
            }

            fsm.Variables.DeleteEmptyVariables();
            fsm.Variables.StripEditorOnlyData();
        }
Exemple #2
0
 public void DebugGUI()
 {
     GUILayout.Label("Back List: ", EditorStyles.get_boldLabel(), new GUILayoutOption[0]);
     using (List <SkillSelectionHistory.HistoryItem> .Enumerator enumerator = this.backList.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             SkillSelectionHistory.HistoryItem current = enumerator.get_Current();
             GUILayout.Label(Labels.GetFullFsmLabelWithInstanceID(current.fsm), new GUILayoutOption[0]);
         }
     }
     GUILayout.Label("Forward List: ", EditorStyles.get_boldLabel(), new GUILayoutOption[0]);
     using (List <SkillSelectionHistory.HistoryItem> .Enumerator enumerator2 = this.forwardList.GetEnumerator())
     {
         while (enumerator2.MoveNext())
         {
             SkillSelectionHistory.HistoryItem current2 = enumerator2.get_Current();
             GUILayout.Label(Labels.GetFullFsmLabelWithInstanceID(current2.fsm), new GUILayoutOption[0]);
         }
     }
     GUILayout.Label("RecentlySelectedList: ", EditorStyles.get_boldLabel(), new GUILayoutOption[0]);
     using (List <SkillSelectionHistory.HistoryItem> .Enumerator enumerator3 = this.recentlySelectedList.GetEnumerator())
     {
         while (enumerator3.MoveNext())
         {
             SkillSelectionHistory.HistoryItem current3 = enumerator3.get_Current();
             GUILayout.Label(Labels.GetFullFsmLabelWithInstanceID(current3.fsm), new GUILayoutOption[0]);
         }
     }
     GUILayout.Label("SelectionCache: ", EditorStyles.get_boldLabel(), new GUILayoutOption[0]);
     using (List <SkillSelection> .Enumerator enumerator4 = this.selectionCache.GetEnumerator())
     {
         while (enumerator4.MoveNext())
         {
             SkillSelection current4 = enumerator4.get_Current();
             GUILayout.Label(Labels.GetFullFsmLabelWithInstanceID(current4.ActiveFsm), new GUILayoutOption[0]);
         }
     }
 }
Exemple #3
0
 public static string GetFullFsmLabelWithInstanceID(PlayMakerFSM fsm)
 {
     return(Labels.GetFullFsmLabelWithInstanceID(fsm));
 }
Exemple #4
0
 public static string GetFullFsmLabelWithInstanceID(Skill fsm)
 {
     return(Labels.GetFullFsmLabelWithInstanceID(fsm));
 }