srakamood.blogg.se

Unity 2d tile map editor
Unity 2d tile map editor





Once you have selected a Tile Set, the viewer will become updated with your selection. Then selecting the Tile Set you wish to currently work with.Īny Tile Sets that you have created will be displayed in the window above, allowing you to switch between the "Active Tile Set". You can specify the Active Tile Set to use inside the Toolbox window by clicking the Selection box. Tile Maps are created inside the Content Browser and edited inside the Tile Map Editor.īutton in the Content Browser, then under Miscellaneous, select Tile Map.Įnter in a name for the new Tile Map asset.ĭouble-click on the asset to open it up in the Tile Map Editor window.Īfter opening a new Tile Map asset, before you can work within the Tile Map editor you will need to assign an Active Tile Set to work with. For the collision to actually take effect in-game, when creating your Tile Map you will need to set the Sprite Collision Domain (see below for information on creating/using Tile Maps). This will set this tile up for collision based on the specified geometry type and shape used. In the Details panel under the Sprite section, find the selected tile and change to the desired Geometry Type.įor information on sprite collision types, see the Sprite Collision documentation. Note the tile number you are editing (green box above), you will need this to apply settings to this particular tile. The shape will be applied and can be further edited inside the Tile Editor window.

unity 2d tile map editor

Select the tile in the viewport (1) then click the type of shape you want to use for collision (2). Per Tile Settings / Applying Tile CollisionĪlso inside the Details panel, you can specify per tile settings (such as applying collision to a particular tile). The background color displayed in the tile set viewer. The drawing offset for tiles from this set (in pixels). The amount of padding between tiles in the tile sheet (in pixels). The amount of padding around the perimeter of the tile sheet (in pixels). In addition to setting Tile Width and Tile Height, you can use the following settings to further adjust your Tile Set from the Details panel. The Tile Editor window also updates to show a single tile from our Tile Sheet that is selected. In the Viewport, the white tile selection box now fully highlights an individual tile on the Tile Sheet (you may need to experiment with different values depending on how your Tile Sheet is set up). The Tile Set will automatically be created/named based on the Texture you supplied.

unity 2d tile map editor

In the Content Browser, Right-click on a Texture asset, then under Sprite Actions choose Create Tile Set. To create a Tile Set from an existing Texture: Specify a Tile Sheet texture asset to use inside the Details panel.

unity 2d tile map editor

They can be created from scratch as blank assets or generated from other existing assets.īutton in the Content Browser, then under Miscellaneous, select Tile Set.Įnter in a name for the new Tile Set asset.ĭouble-click on the asset to open it up in the Tile Set Editor window. You can create Tile Sets inside the Content Browser, similar to other assets. You can also paint tiles on multiple layers, each of which can specify which tile should appear in each cell of the map for that particular layer.

unity 2d tile map editor

Tile Sets and Tile Maps within Paper 2D, provide a quick and easy way to layout the framework or "general layout" of your 2D levels.īy creating and using a Tile Set (a collection of tiles pulled from a texture) with a Tile map (a 2D grid with a defined width and height in tiles), you can select various tiles to "paint" onto the Tile Map which can be used for your level layout.







Unity 2d tile map editor