/// <summary> /// Restores the state from its serialized data. /// </summary> /// <param name="stateComponentUndoData">The serialized state data.</param> protected internal virtual void DeserializeFromUndo(SerializedReferenceDictionary <string, string> stateComponentUndoData) { ResetStateCaches(); }
public UndoState() { m_SerializedStates = new SerializedReferenceDictionary <string, string>(); }
/// <summary> /// Serializes the state to push on the undo stack. /// </summary> /// <param name="stateComponentUndoData">A list to hold the serialized data.</param> protected internal virtual void SerializeForUndo(SerializedReferenceDictionary <string, string> stateComponentUndoData) { }