SKTexture: Error loading image resource

后端 未结 2 1282
一整个雨季
一整个雨季 2021-01-22 05:02

This seems to work perfectly fine:

\"enter

and when I created a new project with e

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 05:29

    Where / How did you add the image in your project ?

    The second syntax (without the path) should be ok. You don't even have to specify .png if that's the file format (but you need to if it something else : .jpg, .jpeg, ...

    You might want to check that your asset is "checked" for the target membership. On the right side (Utilities) > File Inspector > Target Membership : check your target (not the tests one if you don't have any tests).

提交回复
热议问题