I'm trying to use Photoshop's Generate Image Assets feature to export a 32 x 32 transparent image with a solid 16 x 16 square in the middle:
My layers look like this:
I'm using a fully transparent (no fill or stroke) rectangle that fills the area I want to be exported. This doesn't work, as the Generate Image Assets feature does not appear to consider it when determining the size of the asset; I get a 16 x 16 image containing the opaque square instead of the full 32 x 32 image.
I have read about vector masks or layer masks possibly being a solution to this, but I don't really understand them that well, and my attempts to use them to solve my problem were not successful.
So, how can I control the size of my generated asset when it contains transparent areas?