Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Tile Map Undo.RecordObject with TileMap?

Discussion in '2D Experimental Preview' started by mgear, Jun 13, 2016.

  1. mgear


    Aug 3, 2010
    I have editor script where i modify tilemap in sceneview,
    I call Undo.RecordObject(tilemap,..) before modifying,
    undo gets registered to Edit/Undo.. but it doesn't do anything.

    *nevermind, Undo.RegisterCompleteObjectUndo() works

    Also, could be useful to have tilemap.GetArray(), to get whole tilemap as an array,
    and then tilemap.SetArray(), set all tiles from ready array.
    Last edited: Jun 13, 2016