فهرست منبع

Added atlas image properties and sprite trim mode

Björn Ritzl 4 سال پیش
والد
کامیت
184cbaaeaa

+ 18 - 0
docs/en/manuals/atlas.md

@@ -70,6 +70,24 @@ Here are examples of the different property settings with four square images of
 
 ![Atlas properties](images/atlas/atlas_properties.png){srcset="images/atlas/[email protected] 2x"}
 
+## Image properties
+
+Each image in an atlas has a set of properties:
+
+Id
+: The id of the image (read-only).
+
+Size
+: The width and height of the image (read-only).
+
+Sprite Trim Mode
+: How the sprite is rendered. The default is to render the sprite as a rectangle (Sprite Trim Mode set to Off). If the sprite contains a lot of transparent pixels it may be more efficient to render the sprite as a non rectangular shape using between 4 and 8 vertices.
+
+Image
+: Path to the image itself.
+
+![Image properties](images/atlas/image_properties.png){srcset="images/atlas/[email protected] 2x"}
+
 ## Animation properties
 
 In addition to the list of images that are part of an animation group, a set of properties are available:

BIN
docs/en/manuals/images/atlas/image_properties.png


BIN
docs/en/manuals/images/atlas/[email protected]