From 61f774214b27ffe7ec8da7fe8b4af6bed1dc8f27 Mon Sep 17 00:00:00 2001 From: chuanxin <> Date: Tue, 14 Jan 2025 15:14:36 +0800 Subject: [PATCH 1/2] -Add AutoTile to Table Of Contents --- Documentation~/TableOfContents.md | 1 + Documentation~/index.md | 1 + Editor/Tiles/AutoTile/AutoTileTemplate.cs | 2 ++ Editor/Tiles/RuleTile/RuleTileTemplate.cs | 2 ++ Runtime/Tiles/AutoTile/AutoTile.cs | 3 ++- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation~/TableOfContents.md b/Documentation~/TableOfContents.md index 1f823c8..447cc9e 100644 --- a/Documentation~/TableOfContents.md +++ b/Documentation~/TableOfContents.md @@ -8,6 +8,7 @@ * [Animated Tile](AnimatedTile.md) * [Rule Tile](RuleTile.md) * [Rule Override Tile](RuleOverrideTile.md) +* [Auto Tile](AutoTile.md) * [Other](Other.md) * [Grid Information](GridInformation.md) * [Custom Rules for Rule Tile](CustomRulesForRuleTile.md) diff --git a/Documentation~/index.md b/Documentation~/index.md index 2b4767b..2b856cc 100644 --- a/Documentation~/index.md +++ b/Documentation~/index.md @@ -49,6 +49,7 @@ the following additional Tile types that are included with this package. given [Rule Tile](RuleTile.md) to provide different behaviour without changing the original Rules. - [Advanced Rule Override Tile](AdvancedRuleOverrideTile.md): This Tile can override a subset of Rules for a given [Rule Tile](RuleTile.md) to provide specialized behavior, while keeping the rest of the original Rules intact. +- [Auto Tile](AutoTile.md): This Tile match themselves based on the mask set on Textures to generate the AutoTile ruleset. ## Other diff --git a/Editor/Tiles/AutoTile/AutoTileTemplate.cs b/Editor/Tiles/AutoTile/AutoTileTemplate.cs index b0586cf..7c6551d 100644 --- a/Editor/Tiles/AutoTile/AutoTileTemplate.cs +++ b/Editor/Tiles/AutoTile/AutoTileTemplate.cs @@ -7,6 +7,8 @@ namespace UnityEngine.Tilemaps /// /// Template used to create an AutoTile from Texture2D and Sprites. /// + [HelpURL( + "https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@latest/index.html?subfolder=/manual/AutoTile.html")] public class AutoTileTemplate : TileTemplate { internal static string kExtension = "asset"; diff --git a/Editor/Tiles/RuleTile/RuleTileTemplate.cs b/Editor/Tiles/RuleTile/RuleTileTemplate.cs index f94dbe8..2716596 100644 --- a/Editor/Tiles/RuleTile/RuleTileTemplate.cs +++ b/Editor/Tiles/RuleTile/RuleTileTemplate.cs @@ -8,6 +8,8 @@ namespace UnityEditor.Tilemaps /// /// Template used to create a RuleTile from Texture2D and Sprites. /// + [HelpURL( + "https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@latest/index.html?subfolder=/manual/RuleTile.html")] public class RuleTileTemplate : TileTemplate { internal static string kExtension = "asset"; diff --git a/Runtime/Tiles/AutoTile/AutoTile.cs b/Runtime/Tiles/AutoTile/AutoTile.cs index 769addc..b726aa9 100644 --- a/Runtime/Tiles/AutoTile/AutoTile.cs +++ b/Runtime/Tiles/AutoTile/AutoTile.cs @@ -6,7 +6,8 @@ namespace UnityEngine.Tilemaps /// /// Tile using AutoTiling mask and rules /// - [CreateAssetMenu] + [HelpURL( + "https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@latest/index.html?subfolder=/manual/AutoTile.html")] public class AutoTile : TileBase { [Serializable] From 113c7ce8de72f37157172f3438605b47895afead Mon Sep 17 00:00:00 2001 From: chuanxin <> Date: Fri, 17 Jan 2025 12:21:28 +0800 Subject: [PATCH 2/2] -Update package to 4.2.2 --- CHANGELOG.md | 6 ++++++ package.json | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9078177..45530da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +## [4.2.2] - 2025-01-17 + +### Fixed + +- [AutoTile] Add AutoTile to Table of Contents + ## [4.2.1] - 2024-12-10 ### Fixed diff --git a/package.json b/package.json index a4fe580..a3a11a6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.2d.tilemap.extras", "displayName": "2D Tilemap Extras", - "version": "4.2.1", + "version": "4.2.2", "unity": "6000.1", "unityRelease": "0a9", "description": "2D Tilemap Extras is a package that contains extra scripts for use with 2D Tilemap features in Unity. These include custom Tiles and Brushes for the Tilemap feature.\n\nThe following are included in the package:\nBrushes: GameObject Brush, Group Brush, Line Brush, Random Brush\nTiles: Animated Tile, Rule Tile, Rule Override Tile\nOther: Grid Information, Custom Rules for Rule Tile", @@ -15,7 +15,7 @@ "com.unity.modules.jsonserialize": "1.0.0" }, "relatedPackages": { - "com.unity.2d.tilemap.extras.tests": "4.2.1" + "com.unity.2d.tilemap.extras.tests": "4.2.2" }, "samples": [ {