Many thx @J0hn. With content.add(panelEntity) I get the attachment on screen visualized! In the wwdc2023 video and code example they don't use this and apply parentEntity.addChild(panelEntity) instead - but this doesn't work for me. So content.add seems to be must-have?
PS: I want to pin an attachment (text label) to an entity so that the label automatically moves with the entity and thought addChild would do this.
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: