Game Development Reference
In-Depth Information
How it works...
After the creation of the texture atlas, the most important part is how we will be able to ac-
cess images from the texture atlas. It's done by enabling the bool Enable Texture Atlas
Generation . After this, whenever we build the project, the compiler looks for folders with
a naming convention such as name.atlas . Hence, the folders are identified and all the
images in that folder are combined to form one or more large images.
Here, Xcode generates a .plist file after setting the bool. After that, the texture atlas
name is used to get the texture atlas in the code and from there we can get any image,
which is put in that folder that is, texture atlas.
Search WWH ::




Custom Search