SKEmitterNode ignoring zPosition on iOS

When compiling and testing an old game (Paul Pixel - The Awakening) on the latest Xcode 12.3 for the latest iOS 14.3, the Spritekit particles appeared on top. The SKEmitterNode.zPosition value was ignored.

I regularly compile the app with Xcode. So this regression happened with either iOS 14.2 or Xcode 12.2. It doesn't happen when compiling for macOS. The bug is on iOS only.

Does anybody have the same problem?

I have already reported the bug to Apple, but they're not responding.
Answered by German in 689542022

Xcode 13.0 finally fixed the bug! One year I wasn't able to update the game. Now the SKEmitterNode appears in the correct zPosition again.

I have to correct myself. The zPosition of SKEmitterNode is not ignored, but calculated differently than on previous iOS versions.

I still have no clue how to fix this. I don't know what exactly has changed.

Accepted Answer

Xcode 13.0 finally fixed the bug! One year I wasn't able to update the game. Now the SKEmitterNode appears in the correct zPosition again.

use particleZposition instead of zposition, works like a charm

SKEmitterNode ignoring zPosition on iOS
 
 
Q