Unity-Technologies/2d-extras

TerrainTile combined with WeightedRandom?

superfrantv opened this issue · 3 comments

Hello,

i need some help in scripting.
How can i optimized combine TerrainTile with WeightedRandom, i want a checkBox in the Inspector for the "Filled" Tile so add differend styles bassed on weightedrandom.

Thank you

You could check out the link below for an implementation of a Terrain Tile with Weighted Random Sprites, and adjust the Inspector's UX to suit your needs:

https://github.com/Unity-Technologies/2d-extras/blob/weightedrandomterraintile/Runtime/Tiles/TerrainTile/WeightedRandomTerrainTile.cs

Thank you, but i added it and when i reload my project all sprites are deleted in the tile.