Noob here, Best way to grow a sprite?

When a user clicks a screen I need to grow a wall in one direction. The wall will continue to grow each cycle controlled by a speed variable.

Questions:

  1. How do I grow the sprite. I looked at changing transform.localscale and that does grow the object but not sure if that is the correct way to do it.

  2. It appears I will need to adjust my collider to match the new size manually? is that correct.

  3. I want the sprite to have an image on it. Imagine that I have a brick 4 pixels wide. I want to repeat the texture so that the bricks lay out as the wall grows. Is a Texture the correct way to do this? I’ve only created sprites by adding an image to the asset folder and dragging it onto the scene. I’m not sure the process to add a texture to a “naked” sprite.

thanks

Could it grow as tiles instead of freely scaling?

Like,
Insert tiles on that direction to grow,
you could make the growing animation smoother by adding first small tile, then bigger tile(s), then full tile.

Here is a post where someone wanted to do something very similar:

Basically, you add additional sprites making the wall look like its growing. The post shows how you can create the sprite and even set it’s texture.

Another approach to this would be to make your wall piece into a prefab. That way you can setup the texture, collision detection, as well as any animation you might want to show, such as a bunch of bricks coming together to form a piece of the wall. Then you would just need to create a new instance of the prefab and position it.