سؤال

I have a sklabel node and when I add a new sprite on to the same position the label gets covered by the sprite .

How can I make the label not get covered by anything that's added to the scene ?

هل كانت مفيدة؟

المحلول

you can solve the problem simply by changing the properties zPosition, so you can do:

labelNode.zPosition = 100;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top