Region attachments

A region attachment is a rectangular image. It gets the name "region" because at runtime (in your application) it is typically drawn using a region from a texture atlas.

The region attachment's transform cannot be keyed in animations. Instead, the region attachment's bone can be keyed.

Setup

A region attachment is created from an image under the images node in the tree or by a importing data from an image editor script.

Properties

See the common attachment properties for the Select, Export, Name, Color, and Set Parent properties.

Image path

When the image path is blank, the region attachment's name is used to find the image. When the image path is set, it is used instead of the region attachment's name. See image file lookup for more information.

Mesh

The Mesh checkbox changes the region attachment into a mesh attachment. See meshes for more information.

Translation

The region attachment's translation is the location of the center of the image. If it is important for an image to align with world coordinates (ie screen pixels) and the image has odd dimensions, then it needs to be offset by 0.5.

Video

Next: Mesh attachments Previous: Attachments