Ah – so, this is perhaps a simulator bug! I ran your code on the Simulator (Xcode 26.0.1 running the iPhone 17 simulator iOS 26) and, did not see what was expected.
But, given that this code presumably worked for you I had the thought to try it on device and – works!
Thanks!
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: