Skip to content

Instantly share code, notes, and snippets.

@nasser
Created August 12, 2016 17:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nasser/df96da71d519bfb7a78fc4a63c749914 to your computer and use it in GitHub Desktop.
Save nasser/df96da71d519bfb7a78fc4a63c749914 to your computer and use it in GitHub Desktop.
(import Undo)
(import |System.Collections.Generic.List`1|)
(let [method (.GetMethod Undo "GetRecords" (enum-or BindingFlags/NonPublic
BindingFlags/Static))
undos (|System.Collections.Generic.List`1[System.String]|.)
redos (|System.Collections.Generic.List`1[System.String]|.)]
(.Invoke method Undo (into-array [undos redos]))
[undos redos])
;; [("Selection Change" "Create Empty Game Object" "Selection Change"
;; "Selection Change" "Selection Change" "Selection Change" "Rename GameObject")
;; ()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment