Results 269 comments of Johnson Chu

@superfrantv @ChuanXin-Unity Can work with one RuleTile but need some small hacking, the key point is use GridInformation to save door opening info and check the info in ```RuleMatches()``` not...

@superfrantv There has a available DoorTile: https://github.com/johnsoncodehk/rule-tile-extras

@Krummelz For your case, this is an example of inheriting the RuleTile implementation: ```csharp [CreateAssetMenu] public class MyTile : RuleTile { public bool isWall; public override bool RuleMatch(int neighbor, TileBase...

@ChuanXin-Unity Thank you for this example, this is look good! I found that comparing the methods of RuleTile and RuleOverrideTile is a bit complicated. I tried to add the m_OverrideSelf...

@longtran2904 RuleTile refresh can only be trigger by RuleTiles (RuleTile, OverrideRuleTile, CustomRuleTile...), "trigger by any tile" need Tilemap to add support. At now, you can only replace "NonRuleTile" with RuleTile...

@longtran2904 If you want to use normal tile, you need to inherit the normal tile class and override RefreshTile() to update RuleTile. Compared to this method, it is much simpler...

All tiles will be refreshed once when entering playback mode. Therefore, if you do not change the Tilemap at runtime, this problem will not occur. The same problem occurs if...

@ChuanXin-Unity Maybe we can consider refresh affected tiles by Tilemap, or create RuleTilemap for this problem? I think tiles provide all affected positions, and refresh by Tilemap internal is better,...

@longtran2904 You can use [Tilemap.RefreshAllTiles](https://docs.unity3d.com/ScriptReference/Tilemaps.Tilemap.RefreshAllTiles.html), But if the tilemap size is relatively large, you need to consider performance.

@longtran2904 ```Neighbor.Sibling``` and ```Neighbor.This``` is also work. If you use ```Neighbor.This```, this is a very similar script: [ExampleSiblingRuleTile.cs](https://github.com/Unity-Technologies/2d-techdemos/blob/master/Assets/Tilemap/Rule%20Tiles/Rule%20Override%20Tile/ExampleSiblingRuleTile.cs) And sorry, I can't use my English to say how RuleMatch() work...