Skip to main content
gg44078459
Participating Frequently
November 5, 2021
Question

What does each item of xml file mean?

  • November 5, 2021
  • 1 reply
  • 482 views

 

There is a xml file:

```

<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="DADDY_DEAREST.png">
<SubTexture name="Dad Sing Note DOWN0000" x="5" y="5" width="470" height="730" frameX="0" frameY="-5" frameWidth="470" frameHeight="735"/>
<SubTexture name="Dad Sing Note DOWN0001" x="5" y="5" width="470" height="730" frameX="0" frameY="-5" frameWidth="470" frameHeight="735"/>
<SubTexture name="Dad Sing Note DOWN0002" x="480" y="5" width="463" height="735" frameX="-3" frameY="0" frameWidth="470" frameHeight="735"/>
<SubTexture name="Dad Sing Note LEFT0002" x="1324" y="5" width="383" height="777"/>
<SubTexture name="Dad Sing Note LEFT0003" x="1324" y="5" width="383" height="777"/>
<SubTexture name="Dad Sing Note LEFT0004" x="1712" y="5" width="383" height="777"/>
</TextureAtlas>

```

What does each item of the xml file mean?

1、name

2、x and y

3、width and height

4、frameX and frameY

5、frameWidth and frameHeight

6、there is a four-digit number in the value of name ,like this:

```

Dad Sing Note DOWN0000

Dad Sing Note DOWN0001

Dad Sing Note DOWN0002

```

What does this four-digit number mean?

 

Thanks very much!

This topic has been closed for replies.

1 reply

Joseph Labrecque
Community Expert
Community Expert
November 5, 2021

These are coordinate and area data for a texture atlas.