Search Unity

  1. Curious about what's going to be in 2021.1? Have a look at the 2021.1 beta blog post.
    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