Then before you add the panelEntity you have to set the Position relative the parent entity
panelEntity.setPosition((SIMD3(x: attachmentOffsetX, y: attachmentOffsetY, z: attachmentOffsetZ)), relativeTo: parentEntity)
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: