An Unity editor window for creating and then editing rule tiles (aka auto tiles).
Example uses assets by Kenney
- Create and edit rule tiles in custom handy window
- Support for often used 16, 15 and 47 tiles pattern
- Support for any custom patterns (just other rule tiles)
- Support for editing rule's game object and collider type (with "Apply for all" button)
Planned features:
- Animations/sprite variants editing support (but now editor preserves unsupported properties like output type as is, you can change them directly)
- Grid-ish pattern view (instead of just list)
Package requires Unity 2021.1+ and 2D Tilemap Extras package (in which the rule tile itself).
Unity 2021 is required because tool is developed based on UI Toolkit, older versions do not have some built-in components. However, you can try to work around this in Unity 2020.3 by manually installing the com.unity.ui
preview package (not tested).
Tested on Unity 2021.3.9f1
- Navigate to
Window/Quick Rule Tile
- Select pattern in dropdown list under "New" and "Open" buttons.
- In that window drag and drop sprites or texture (should be sliced into sprites) to the top empty area (sprites list).
- Pay attention to the current tile in the bottom area (tiles list) and click on the corresponding sprite, then next and next, current tile will move as you selecting sprites. You can also change selected tile by clicking on them and re-select sprite for it.
- As soon as all tiles are assigned, press the "Save as..." button to save asset.
Later you will be able to edit this rule tile by clicking "Open" button on the top toolbar.
Add from OpenUPM (Recommended)
CLI
openupm add com.stalengd.quickruletileeditor
Manual installation
- open
Edit/Project Settings/Package Manager
- add a new Scoped Registry (or edit the existing OpenUPM entry):
Name: package.openupm.com URL: https://package.openupm.com/ Scope(s): com.stalengd.quickruletileeditor
- click Save (or Apply)
- open
Window/Package Manager
- click +
- select Add package by name... or Add from Git URL...
- paste
com.stalengd.quickruletileeditor
into name - paste
0.3.0
into version - click Add
- open
Window/Package Manager
- click +
- select Add from Git URL...
- paste
https://github.com/stalengd/QuickRuleTileEditor.git
- click Add