Skip to content

Commit 758ebd7

Browse files
Merge 2d extras (Unity-Technologies#187)
* Merge master Squashed commit of the following: commit a95c07a Author: ChuanXin-Unity <[email protected]> Date: Tue Jan 7 11:42:57 2020 +0800 -Update version to 1.4.0 commit 332240f Author: ChuanXin-Unity <[email protected]> Date: Tue Jan 7 11:30:36 2020 +0800 -Use WorldToCell comparison when getting GameObjects using PrefabBrush commit 7eed19e Merge: e0cd583 4b3ce01 Author: ChuanXin-Unity <[email protected]> Date: Tue Jan 7 10:39:49 2020 +0800 Merge branch 'master' into updates commit 4b3ce01 Author: Johnson Chu <[email protected]> Date: Fri Jan 3 14:47:23 2020 +0800 [CustomRuleTile] Support HideInInspector, DontOverride attributes (Unity-Technologies#168) * [HexagonalRuleTile] Don't override m_FlatTop in RuleOverrideTile * [RuleTiles] Make API public * [RuleOverrideTile] Remove m_MissingIndex properties commit e0cd583 Author: ChuanXin-Unity <[email protected]> Date: Thu Jan 2 15:20:11 2020 +0800 -Add preview for HexagonalRuleTileEditor commit fb16da7 Author: ChuanXin-Unity <[email protected]> Date: Thu Jan 2 12:26:27 2020 +0800 -Add m_AnimationStartFrame which helps to calculate the animation start time for tile for the given Tilemap * Merge master * Merge master * Merge master Squashed commit of the following: commit 1f147c7 Author: ChuanXin-Unity <[email protected]> Date: Mon Feb 17 11:16:03 2020 +0800 -Add Third Party Notices.md * Merge master * Merge master
1 parent ea401cd commit 758ebd7

File tree

9 files changed

+255
-259
lines changed

9 files changed

+255
-259
lines changed

CHANGELOG.md

Lines changed: 91 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,91 @@
1-
# Changelog
2-
All notable changes to this package will be documented in this file.
3-
4-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5-
6-
## [1.4.0] - 2020-01-07
7-
### Added
8-
- [RuleTile / HexagonalRuleTile / IsometricRuleTile / RuleOverrideTile] Added Asset Preview for TilingRules
9-
- [RuleTile] Hidden Rule field
10-
- [CustomRuleTile] Support custom field of Object type
11-
- [CustomRuleTile] Support HideInInspector, DontOverride attributes
12-
- [RuleOverrideTile] Move advanced mode to AdvancedRuleOverrideTile
13-
- [RuleOverrideTile] Add GameObject overrides
14-
- [RuleOverrideTile] List height lessen
15-
- [RuleOverrideTile] Don't override null sprite
16-
- [RuleOverrideTile] Add static preview
17-
- [AdvancedRuleOverrideTile] List GUI simplify
18-
- [RuleOverrideTile / AdvancedRuleOverrideTile] Show unused overrides
19-
- [RuleOverrideTile / AdvancedRuleOverrideTile] Support multiple inheritance
20-
- [RuleOverrideTile / AdvancedRuleOverrideTile] Prevent circular reference
21-
- [AnimatedTile] Added Animation Start Frame which helps to calculate the Animation Start Time for a given Tilemap
22-
23-
### Fixed
24-
- [RuleTile] Fixed RuleTile InstantiatedGameObject rotation/scale
25-
- [RuleTile] Fixed override tiles have not update when default properties changed
26-
- [AdvancedRuleOverrideTile] Fix override rule lost reference when source rule reorder
27-
- [PrefabBrush] Use WorldToCell comparison when getting GameObjects using PrefabBrush
28-
29-
## [1.3.1] - 2019-11-06
30-
### Changed
31-
- [RuleTile] Simplified
32-
- [RuleTile] Caching all RuleTile neighbor positions for Tilemap to speedup refresh affected tiles
33-
34-
### Fixed
35-
- [RuleTile] Fix remote positions missing of MirrorXY (#148)
36-
- [HexagonalRuleTile] Fix ApplyRandomTransform() of HexagonalRuleTile missing MirrorXY case
37-
- [RuleOverrideTile] Fix RuleOverrideTile does not refresh when add/remove rule
38-
- [RuleTile] Fix random rotation calculation mistake
39-
- [RuleTile] Fix cache data will not update when rule change
40-
41-
## [1.3.0] - 2019-11-01
42-
### Changed
43-
- [RuleTile] changed from using index to using position.
44-
- [RuleTile] Additional storage rule position.
45-
- [RuleTile] Delete DontCare rule.
46-
- [RuleTile] Rule list increased Extend Neighbor toggle. When selected, it will increase the rule range that can be set.
47-
- [RuleTile] No longer fixed to checking around 8 rules.
48-
- [RuleTile] RefreshTile() will refresh affected remote Tiles.
49-
- [RuleTile] Delete GetMatchingNeighboringTiles(), no longer get nearby Tiles in advance, the performance is affected. (may be changed to cache later)
50-
- [IsometricRuleTile] Rewrite.
51-
- [HexagonalRuleTile] Rewrite.
52-
- [LineBrush] Fix for Tiles disappear after selection and drag with LineBrush
53-
- [RuleTile] Add MirrorXY Transform Rule
54-
55-
## [1.2.0] - 2019-10-17
56-
### Changed
57-
- [PrefabBrush] Erase GameObjects at target position before painting
58-
- [RuleTileEditor] Made RuleTileEditor and children public
59-
- [RuleTile] Roll back m_Self to this.
60-
- [RuleOverrideTile] Remove m_OverrideSelf property.
61-
- [RuleOverrideTile] Inherit custom properties from custom RuleTile.
62-
- [RuleOverrideTile] Change m_RuntimeTile to m_InstanceTile.
63-
64-
## [1.1.0] - 2019-08-23
65-
### Changed
66-
- Validate Gap and Limit for GroupBrush
67-
- Fix z iterator for RandomBrush
68-
- Check randomTileSets on addToRandomTiles
69-
- Add Anchor to GameObjectBrush and PrefabBrush
70-
71-
## [1.1.0] - 2019-03-22
72-
### Changed
73-
- Copy GameObject when copying TilingRule in RuleOverrideTile
74-
75-
## [1.1.0] - 2019-03-08
76-
### Added
77-
- Added com.unity.2d.tilemap as a dependency of com.unity.2d.tilemap.extras
78-
79-
### Changed
80-
- Custom Grid Brushes have been updated to the UnityEditor.Tilemaps namespace
81-
82-
## [1.0.0] - 2019-01-02
83-
### This is the first release of Tilemap Extras, as a Package
1+
# Changelog
2+
All notable changes to this package will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
6+
## [1.5.0-preview] - 2020-02-14
7+
### Added
8+
- Added CONTRIBUTING.md
9+
- Updated LICENSE.md
10+
11+
### Fixed
12+
- [WeightedRandomTile] Fixed WeightedRandomTile messing up Random.seed!
13+
14+
## [1.4.0] - 2020-01-07
15+
### Added
16+
- [RuleTile / HexagonalRuleTile / IsometricRuleTile / RuleOverrideTile] Added Asset Preview for TilingRules
17+
- [RuleTile] Hidden Rule field
18+
- [CustomRuleTile] Support custom field of Object type
19+
- [CustomRuleTile] Support HideInInspector, DontOverride attributes
20+
- [RuleOverrideTile] Move advanced mode to AdvancedRuleOverrideTile
21+
- [RuleOverrideTile] Add GameObject overrides
22+
- [RuleOverrideTile] List height lessen
23+
- [RuleOverrideTile] Don't override null sprite
24+
- [RuleOverrideTile] Add static preview
25+
- [AdvancedRuleOverrideTile] List GUI simplify
26+
- [RuleOverrideTile / AdvancedRuleOverrideTile] Show unused overrides
27+
- [RuleOverrideTile / AdvancedRuleOverrideTile] Support multiple inheritance
28+
- [RuleOverrideTile / AdvancedRuleOverrideTile] Prevent circular reference
29+
- [AnimatedTile] Added Animation Start Frame which helps to calculate the Animation Start Time for a given Tilemap
30+
31+
### Fixed
32+
- [RuleTile] Fixed RuleTile InstantiatedGameObject rotation/scale
33+
- [RuleTile] Fixed override tiles have not update when default properties changed
34+
- [AdvancedRuleOverrideTile] Fix override rule lost reference when source rule reorder
35+
- [PrefabBrush] Use WorldToCell comparison when getting GameObjects using PrefabBrush
36+
37+
## [1.3.1] - 2019-11-06
38+
### Changed
39+
- [RuleTile] Simplified
40+
- [RuleTile] Caching all RuleTile neighbor positions for Tilemap to speedup refresh affected tiles
41+
42+
### Fixed
43+
- [RuleTile] Fix remote positions missing of MirrorXY (#148)
44+
- [HexagonalRuleTile] Fix ApplyRandomTransform() of HexagonalRuleTile missing MirrorXY case
45+
- [RuleOverrideTile] Fix RuleOverrideTile does not refresh when add/remove rule
46+
- [RuleTile] Fix random rotation calculation mistake
47+
- [RuleTile] Fix cache data will not update when rule change
48+
49+
## [1.3.0] - 2019-11-01
50+
### Changed
51+
- [RuleTile] changed from using index to using position.
52+
- [RuleTile] Additional storage rule position.
53+
- [RuleTile] Delete DontCare rule.
54+
- [RuleTile] Rule list increased Extend Neighbor toggle. When selected, it will increase the rule range that can be set.
55+
- [RuleTile] No longer fixed to checking around 8 rules.
56+
- [RuleTile] RefreshTile() will refresh affected remote Tiles.
57+
- [RuleTile] Delete GetMatchingNeighboringTiles(), no longer get nearby Tiles in advance, the performance is affected. (may be changed to cache later)
58+
- [IsometricRuleTile] Rewrite.
59+
- [HexagonalRuleTile] Rewrite.
60+
- [LineBrush] Fix for Tiles disappear after selection and drag with LineBrush
61+
- [RuleTile] Add MirrorXY Transform Rule
62+
63+
## [1.2.0] - 2019-10-17
64+
### Changed
65+
- [PrefabBrush] Erase GameObjects at target position before painting
66+
- [RuleTileEditor] Made RuleTileEditor and children public
67+
- [RuleTile] Roll back m_Self to this.
68+
- [RuleOverrideTile] Remove m_OverrideSelf property.
69+
- [RuleOverrideTile] Inherit custom properties from custom RuleTile.
70+
- [RuleOverrideTile] Change m_RuntimeTile to m_InstanceTile.
71+
72+
## [1.1.0] - 2019-08-23
73+
### Changed
74+
- Validate Gap and Limit for GroupBrush
75+
- Fix z iterator for RandomBrush
76+
- Check randomTileSets on addToRandomTiles
77+
- Add Anchor to GameObjectBrush and PrefabBrush
78+
79+
## [1.1.0] - 2019-03-22
80+
### Changed
81+
- Copy GameObject when copying TilingRule in RuleOverrideTile
82+
83+
## [1.1.0] - 2019-03-08
84+
### Added
85+
- Added com.unity.2d.tilemap as a dependency of com.unity.2d.tilemap.extras
86+
87+
### Changed
88+
- Custom Grid Brushes have been updated to the UnityEditor.Tilemaps namespace
89+
90+
## [1.0.0] - 2019-01-02
91+
### This is the first release of Tilemap Extras, as a Package

Documentation~/Contributors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ Thank you to all who have contributed to this repository!
1818
- ream88
1919
- Quickz
2020
- capnslipp
21+
- TrentSterling
2122

2223
If anybody has been missed, please do let us know!

Editor/Brushes/CoordinateBrush/CoordinateBrush.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace UnityEditor.Tilemaps
77
/// Use this as an example to create brushes which have extra visualization features when painting onto a Tilemap.
88
/// </summary>
99
[CustomGridBrush(true, false, false, "Coordinate Brush")]
10-
[CreateAssetMenu(fileName = "New Coordinate Brush", menuName = "Brushes/Coordinate Brush")]
1110
public class CoordinateBrush : GridBrush
1211
{
1312
}

Editor/Brushes/GroupBrush/GroupBrush.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,20 +192,6 @@ private void PickCell(Vector3Int position, Vector3Int brushPosition, Tilemap til
192192
SetColor(brushPosition, tilemap.GetColor(position));
193193
}
194194
}
195-
196-
/// <summary>
197-
/// Creates a Group Brush Asset
198-
/// </summary>
199-
[MenuItem("Assets/Create/Brushes/Group Brush")]
200-
public static void CreateBrush()
201-
{
202-
string path = EditorUtility.SaveFilePanelInProject("Save Group Brush", "New Group Brush", "asset", "Save Group Brush", "Assets");
203-
204-
if (path == "")
205-
return;
206-
207-
AssetDatabase.CreateAsset(ScriptableObject.CreateInstance<GroupBrush>(), path);
208-
}
209195
}
210196

211197
/// <summary>

Editor/Brushes/LineBrush/LineBrush.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace UnityEditor.Tilemaps
1111
/// Use this as an example to modify brush painting behaviour to making painting quicker with less actions.
1212
/// </summary>
1313
[CustomGridBrush(true, false, false, "Line Brush")]
14-
[CreateAssetMenu(fileName = "New Line Brush", menuName = "Brushes/Line Brush")]
1514
public class LineBrush : GridBrush
1615
{
1716
/// <summary>

0 commit comments

Comments
 (0)