I have a question regarding particle emitters on realityKit

I am currently developing a game that runs on VisionOS using RealityKit and Swift. I have a question regarding particle emitters.

It seems that there is a sorting order (render queue) between particle emitters themselves, but there doesn’t appear to be a render queue between particle emitters and regular model entities.

If such a feature exists, could you please provide a simple example? Thank you!

Hey @Lhamed-ung,

I've got great news. Such a feature does exist; what you are looking for is ModelSortGroupComponent. A model sort group component gives you control over the rendering order for entities within the same ModelSortGroup.

Checkout the docs for sample code, photos and additional details: https://developer.apple.com/documentation/realitykit/modelsortgroupcomponent

Let me know if you have additional questions,
Michael

I have a question regarding particle emitters on realityKit
 
 
Q