2d-extras
2d-extras copied to clipboard
TerrainTile combined with WeightedRandom?
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.
I updated the branch with a fix for that!
On Thu, Nov 4, 2021 at 6:24 PM superfrantv @.***> wrote:
Thank you, but i added it and when i reload my project all sprites are deleted in the tile.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/2d-extras/issues/319#issuecomment-960626538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHA3TER6FPCFZO2P3IKNHT3UKJNPPANCNFSM5HGQTGRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.