As suggested in the documentation we want to change Material Swap Sets in Polyspatial settings to use RealityKit and Metal rendering in one scene. The material swap set is not accessible during runtime.
- What would be the best practice for this process?
- Assuming we could do this, when should we change MaterialSwapSet? Before or after changing to Metal/RealitKit?
Hey there, are you using hybrid mode to switch between RealityKit and Metal? We developed MaterialSwapSets before hybrid mode existed, so I believe the tooling might need to be adapted for swap sets to target a specific app mode. I’ll check in on this! For a non-hybrid app however, you can just assign the specific MaterialSwapSet for app mode you want to target in Project Settings -> PolySpatial
.
Update: After talking with my colleague, it seems like swap sets are only applied in RealityKit. Therefore, you can try having your scene contain all of the materials required for the Metal renderer, and have a swap set that maps the metal materials to the RK materials. Please let me know if that works!
Oh, if that’s the case, it’s really easy to use! I thought we were going to use separate Swap Sets. Thank you!