private void OnUndoRedo() { int currentGroup = Undo.GetCurrentGroup(); int eventID = m_eventID; if (currentGroup != eventID) { for (int i = 0; i < base.targets.Length; i++) { TMPro_EventManager.ON_TEXTMESHPRO_PROPERTY_CHANGED(true, base.targets[i] as TextMeshPro); m_eventID = currentGroup; } } }
// Special Handling of Undo / Redo Events. private void OnUndoRedo() { int undoEventID = Undo.GetCurrentGroup(); int LastUndoEventID = m_eventID; if (undoEventID != LastUndoEventID) { for (int i = 0; i < targets.Length; i++) { //Debug.Log("Undo & Redo Performed detected in Editor Panel. Event ID:" + Undo.GetCurrentGroup()); TMPro_EventManager.ON_TEXTMESHPRO_PROPERTY_CHANGED(true, targets[i] as TextMeshPro); m_eventID = undoEventID; } } }
protected override void OnUndoRedo() { int undoEventId = Undo.GetCurrentGroup(); int lastUndoEventId = s_EventId; if (undoEventId != lastUndoEventId) { for (int i = 0; i < targets.Length; i++) { //Debug.Log("Undo & Redo Performed detected in Editor Panel. Event ID:" + Undo.GetCurrentGroup()); TMPro_EventManager.ON_TEXTMESHPRO_PROPERTY_CHANGED(true, targets[i] as TextMeshPro); s_EventId = undoEventId; } } }