- Home /
Mask a texture onto sprite?
I'm not quite sure on how to ask this, but I'm currently trying to make a physics game with a wooden block theme. I want to be able to easily make multiple block prefabs without drawing a specific texture for them.
One of the ideas I really like is to have a large wood base texture, and just to "cut out" the piece I'd need. Sort of like a cookie cutter, this makes blocks that never have a stretched texture and that take literal seconds to make. I have a slight system doing this currently with sprite masks, where I have a wood base texture only visible in mask, and just create the piece I need out of sprite masks, and then attach them all together.
But problems start to arise when two blocks get close to each other and their textures conflict. As you can see from the red block in the image below
Pretty much what I'm asking is if there is a way to make a system like this? Something like assigning textures to only work in certain masks? Or maybe even just lose the sprite mask and apply the texture in script? Something else that is desperately needed for this is some sort of outline shader to make the blocks look rounded and not look connected when close together.
I'm still fairly new to unity so sorry if this is a dumb question, thanks for reading!
Your answer
Follow this Question
Related Questions
Sprites and textures appears black on Samsung Galaxy Grand I9082 0 Answers
How to remove gaps in a repeating texture? 2 Answers
Atlas size based on sprite 0 Answers
Error creating texture 0 Answers
reset 2d animation(sprite sheet texture) 0 Answers