-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [1.6.3-preview] - 2020-11-26 ### Changed - Update documentation - Add contribution notice in README.md - Update Third Party Notices.md - [PrefabBush] Add pick - [PrefabBush] Add tooltip for "Erase Any Objects" field - [PrefabBrush][GameObjectBrush] Account for Anchor when using GetObjectsInCell in PrefabBrush and GameObjectBrush - [CustomRuleTileScript] Allow Custom Rule Tile template script to be created regardless of where template script is installed (from a package or in the project)
- Loading branch information
Unity Technologies
committed
Nov 26, 2020
1 parent
f107258
commit 44bd76f
Showing
28 changed files
with
395 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Advanced Rule Override Tile | ||
|
||
__Contributions by:__ [johnsoncodehk](https://github.com/johnsoncodehk), [Autofire](https://github.com/Autofire) | ||
|
||
__Advanced Rule Override Tiles__ are Tiles which can override a subset of Rules for a given [Rule Tile](RuleTile.md) while maintaining most of the other set Rules of the Rule Tile. This allows you to create Tiles that provide specialized behavior in specific scenarios. | ||
|
||
## Properties | ||
|
||
| Property | Function | | ||
| ----------------- | ------------------------------------------------------------ | | ||
| __Tile__ | The Rule Tile to override. | | ||
|
||
Depending on the Rule Tile that is overridden, there may be further properties which you can override here. Any public property in the Rule Tile that does not have a `RuleTile.DontOverride` attribute will be shown here and can be overridden. | ||
|
||
## Usage | ||
|
||
First select the Rule Tile to be overridden in the __Tile__ property. The Rule Override Tile editor then displays the different rules in the selected Rule Tile which you can override. | ||
|
||
Select the Rule which you want to override by toggling the Rule. This will allow you to modify the output of the Rule, such as the Sprite, the GameObject or the Collider Type. The outputs are the same as the original [Rule Tile](RuleTile.md) and are detailed there. The matching Rule itself cannot be changed here and is displayed here to help identify it. | ||
|
||
![Advanced Rule Override Tile Editor](images/AdvancedRuleOverrideTileEditor.png) | ||
|
||
Paint with the Advanced Rule Override Tile using the [Tile Palette](https://docs.unity3d.com/Manual/Tilemap-Painting.html) tools. | ||
|
||
![Scene View with Advanced Rule Override Tile](images/AdvancedRuleOverrideTile.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
# Animated Tile | ||
|
||
__Contribution by:__ [MahdiMahzuni](https://github.com/MahdiMahzuni) | ||
__Contribution by:__ MahdiMahzuni | ||
|
||
Animated Tiles are tiles which run through and display a list of sprites in sequence. | ||
An Animated Tile runs through and displays a list of Sprites in sequence to create a frame-by-frame animation. | ||
|
||
![](images/AnimatedTileEditor.png)<br/>Animated Tile editor window | ||
|
||
### Properties | ||
|
||
| Property | Function | | ||
| ------------------------------ | ------------------------------------------------------------ | | ||
| __Number of Animated Sprites__ | Number of Animated Sprites in the Animated Tile. | | ||
| __Sprite__ | The Sprite set for the Animated Tile. This will be played in sequence. | | ||
| __Minimum Speed__ | The minimum possible speed at which the Animation of the Tile will be played. A speed value will be randomly chosen between the minimum and maximum speed. | | ||
| __Maximum Speed__ | The maximum possible speed at which the Animation of the Tile will be played. A speed value will be randomly chosen between the minimum and maximum speed. | | ||
| __Sprite list__ | The list displaying the current order of Sprites for this Animated Tile’s animation which plays in sequence. Set a Sprite by selecting the **Select** button at the bottom right of the Sprite preview, then choosing the Sprite from the dialog box. Select and hold the **=** next to each Sprite to reorder their place in the animation sequence. | | ||
| __Minimum Speed__ | The minimum possible speed at which the Animation of the Tile is played. A speed value will be randomly chosen between the minimum and maximum speed. | | ||
| __Maximum Speed__ | The maximum possible speed at which the Animation of the Tile is played. A speed value will be randomly chosen between the minimum and maximum speed. | | ||
| __Start Time__ | The starting time of this Animated Tile. This allows you to start the Animation from a particular time. | | ||
| __Start Frame__ | The starting frame of this Animated Tile. This allows you to start the Animation from a particular Sprite in the list of Animated Sprites. | | ||
| __Collider Type__ | The Collider Shape generated by the Tile. | | ||
| __Collider Type__ | The [Collider](https://docs.unity3d.com/Manual/Collider2D.html) shape generated by the Tile. | | ||
|
||
### Usage | ||
|
||
Set up the Animated Tile with the Animated Sprites through the Animated Tile Editor. | ||
|
||
![Animated Tile Editor](images/AnimatedTileEditor.png) | ||
|
||
Paint the Animated Tile using the Tile Palette tools. | ||
Create the Animated Tile by selecting and ordering the Sprites that makes up its animation sequence in the Animated Tile editor, then paint the Animated Tile with the [Tile Palette tools](https://docs.unity3d.com/Manual/Tilemap-Painting.html). | ||
|
||
![Game View with Group Brush](images/AnimatedTile.png) | ||
![](images/AnimatedTile.png)<br/>Game view, painted with the [Group Brush](GroupBrush.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
# Random Brush | ||
|
||
This Brush places random Tiles onto a Tilemap. Use this as an example to create Brushes which store specific data per Brush, and to make Brushes which randomize behavior. | ||
This Brush places random Tiles onto a Tilemap by selecting from defined **Tile Sets** while painting onto the the Tilemap. Use this as an example to create custom Brushes which store specific data per Brush, and to make Brushes with randomized painting behavior. | ||
|
||
## Properties | ||
|
||
| Property | Function | | ||
| ----------------------- | ------------------------------------------------------------ | | ||
| __Pick Random Tiles__ | Enable this property to pick the Tiles from the current selection as a random Tile Set. | | ||
| __Add To Random Tiles__ | Enable this property to add the picked Tile Sets to existing Tile Sets instead of replacing them. | | ||
| __Tile Set Size__ | The size of each Tile Set. | | ||
| __Tile Set Size__ | Set the size of the Tile Set that is painted by this Brush. | | ||
| __Number of Tiles__ | The number of Tile Sets. | | ||
| __Tile Set__ | The Tile Set to randomize from | | ||
| __Tiles__ | The Tiles in the Tile Set. | | ||
|
||
## Usage | ||
|
||
To create Tile Sets, first define the size of the Tile Set you want to paint by setting a value on the Tile Set Size property. Then you can add Tile Sets manually with the Brush Editor or select them from an existing Tile Palette. | ||
To create a **Tile Set**, first define the size of the Tile Set you want to paint by setting its size values in the **Tile Set Size** property. Then you can add Tile Sets manually with the Brush Editor or select them from an existing Tile Palette. | ||
|
||
To select Tile Sets from an existing Tile Palette, enable the __Pick Random Tiles__ property and select the Tile Sets using the [Picker Tool](https://docs.unity3d.com/Manual/Tilemap-Painting.html#Picker). This will create a Tile Set, or multiple Sets if the picked size is larger than the Tile Set Size property. Enable the __Add To Random Tiles__ property to add a picked selection of Tiles onto new or existing Tile Sets instead of replacing them. | ||
To select Tile Sets from an existing [Tile Palette](https://docs.unity3d.com/Manual/Tilemap-Palette.html), enable the __Pick Random Tiles__ property and select the Tile Sets using the [Picker Tool](https://docs.unity3d.com/Manual/Tilemap-Painting.html#Picker). This will create a Tile Set, or multiple Sets if the picked size is larger than the size set in the **Tile Set Size** property. Enable the __Add To Random Tiles__ property to add a picked selection of Tiles onto new or existing Tile Sets instead of replacing them. | ||
|
||
![Brush Editor with Random Brush](images/RandomBrushTileSet.png) | ||
![Brush Editor with Random Brush](images/RandomBrushTileSet.png)</br> In this example, 3 Tile Sets of 1x2 are created. | ||
|
||
When painting with the Random Brush, the Random Brush will randomly pick from the available Tile Sets while filling Tiles. | ||
When painting with the Random Brush, the Random Brush will randomly pick from the available Tile Sets while painting the Tiles. | ||
|
||
![Scene View with Random Brush](images/RandomBrush.png) | ||
|
||
## Implementation | ||
|
||
The RandomBrush inherits from the GridBrush and implements the following overrides: | ||
The Random Brush inherits from the Grid Brush and implements the following overrides: | ||
|
||
- It overrides the Paint method to paint random selections of Tiles from chosen Tile Sets. | ||
- It overrides the Pick method to be able to pick selections of Tiles for the random Tile Sets. |
Oops, something went wrong.