Unity-Technologies / 2d-extras

Fun 2D Stuff that we'd like to share!
Other
1.56k stars 344 forks source link

RuleTile with Random GameObject instead of Sprite #320

Open superfrantv opened 3 years ago

superfrantv commented 3 years ago

Hello,

i created differend Grass-Prefabs wiht Animation and so on, i will place them using a RuleTile's GameObject Field, but i need the GameObject Field there where actually the Random Sprites Field is.

ChuanXin-Unity commented 3 years ago

I'm not sure what you mean by that. Do you want to have random GameObjects instead of random Sprites for the RuleTile?

superfrantv commented 3 years ago

Yes thats my idea a Tile where GameObjects instead of random Sprites can selected.

ChuanXin-Unity commented 3 years ago

I added some changes to the RuleTile at https://github.com/Unity-Technologies/2d-extras/commit/ae7a3285cc3b1020789d6dbda77fd0e79368d344 which you can refer to for doing this.