Search Unity

Tile Map Small tool for working with tilemap layers (inside scene view)

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

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,197
    Last edited: Feb 26, 2018
  2. Johaness_Reuben

    Johaness_Reuben

    Unity Technologies

    Joined:
    Jan 27, 2016
    Posts:
    253
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,197
    Added:
    - Option to fade non-selected layers (make them semi-transparent)

    tilemaphighlight.gif
     
    jc-drile77 likes this.
  4. Xelnath

    Xelnath

    Joined:
    Jan 31, 2015
    Posts:
    271
    Good work. Keep this stuff coming.
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,197
    Added:
    - Separate hierarchy helper script : https://github.com/UnityCommunity/U...Scripts/2D/Tilemaps/TileMapHierarchyHelper.cs (get icons from here)
    - Can arrange layer order with those small arrows (because sometimes its difficult when you try to drag&drop arrange gameobjects, they get accidentally parented etc..)
    - Displays custom icon for tilemap gameobjects (green if gameobject is active)

    Just for testing so far, not sure if it needs icon, and still thinking if/how locking a layer would do..

    tilemap-arrange.gif
     
    Last edited: Feb 26, 2018
    Lars-Steenhoff likes this.
  6. jc-drile77

    jc-drile77

    Joined:
    Jul 1, 2014
    Posts:
    229
    You shoud update the original post too, if not it seems like it is still the first version (at first glance) :)
    Oh, and nice feature !
     
  7. Xelnath

    Xelnath

    Joined:
    Jan 31, 2015
    Posts:
    271
    This is great, I'm surprised they haven't integrated this into their own build! Wow.
     
  8. der_r

    der_r

    Joined:
    Mar 30, 2014
    Posts:
    259
    Sweeeet! Thanks for sharing!
     
  9. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,197
    Updated the source in original post link^

    - Fixed: Keyboards event were all eaten/used, now only for those keys that are used
    - Added: Press G to toggle between Framed, PixelPerfectZoom, HalfWayZoom (at mouse position) *currently pixelPerUnity ratio is set fixed to 16 (would need to take that from tilemap sprites)

    Ill later change that Framed, into "Fit to view" instead..

    Pressing G button to have better framing/zoom:
    sceneview_better_framing.gif
     
    Last edited: Aug 2, 2016
    Johaness_Reuben likes this.
  10. Johaness_Reuben

    Johaness_Reuben

    Unity Technologies

    Joined:
    Jan 27, 2016
    Posts:
    253
  11. Xelnath

    Xelnath

    Joined:
    Jan 31, 2015
    Posts:
    271
    Super useful!!
     
  12. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,197
    Updated code in original post link.

    Updates
    - 5.5.0a6 code changes
    - Reset layer colors when closing tool window
     
    Johaness_Reuben likes this.
unityunity