How to use texture from a specific atlas in Xcode's scene editor

132 views Asked by At

Is there a way in the scene editor to select an image from a texture atlas?

I want to use an image from a texture atlas in the scene editor to create an SKSpriteNode. The problem is I have multiple atlases each containing different images with the same name.

For example, atlas1 contain image1, image2, image3, and then atlas2 also contain images named image1, image2, image3 but they are different. Only they have the same names. I want to use image1 from atlas2 but in the media library I only see image1 from atlas1 and I can't figure how to select the one in atlas2.

1

There are 1 answers

5
Ron Myschuk On

Edit: It doesn't appear that there is anyway to select the second or third etc images with the same name.

You should be able to see that 2 atlases have images with the same names and be able to pick the images out in Scene editor.

enter image description here

I was able to recreate this my scene editor.

Look for the little 2 beside the image, it will show that there are multiple versions (blue circle in my pic)

select your image for viewing with the tab like links (red circle in my image)

Also worth noting these atlases are created using .atlas folders