2d-extras icon indicating copy to clipboard operation
2d-extras copied to clipboard

RuleTile with Random GameObject instead of Sprite

Open superfrantv opened this issue 4 years ago • 3 comments

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.

superfrantv avatar Nov 09 '21 10:11 superfrantv

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

ChuanXin-Unity avatar Nov 15 '21 02:11 ChuanXin-Unity

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

superfrantv avatar Nov 15 '21 08:11 superfrantv

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.

ChuanXin-Unity avatar Nov 16 '21 04:11 ChuanXin-Unity