how to make rule tile

Hi everyone. I was just looking at a video and I can’t find the rule tile in Assets > Create > Tiles > Rule Tile. I already have animated tile there, and I think I’ll need a .cs script for it, but I can’t seem to find it. Checked out this other thread and I found this link, but it’s broken and leads to the github 404 page not found page. Would you guys post the code for it? Thanks.

Hi,

See this page:
https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@1.5/manual/index.html

Rule Tile is not included as part of Tile Map. You will have to download it into your project.

They mention two repositories related to Rule Tile:
https://github.com/Unity-Technologies/2d-extras
https://github.com/Unity-Technologies/2d-techdemos

Hi, there are so much stuff in there, and which one am I supposed to copy-and-paste into my project to get the rule tile editor working?

Hi, this depends on which version of the Unity Editor you are using. If you are using 2020.x, you can add the package using the Unity Package Manager after enabling preview packages in the Package Manager settings.

Alternatively, if you just need the Rule Tile itself, you can add the following files to your project: