One thing you might want to do is print a summary of the contents of a model you just loaded. You can explore the Entity API to see more fields you can print. I like to look at scaling, translation, and rotation values for each entity.
For example, from the sample code, add a function after loading the Experience.loadBox()
let boxAnchor = try! Experience.loadBox()
displayEntityTree(entity: boxAnchor)
and then define the function to traverse the tree:
func displayEntityTree(entity: Entity, prefix: String = "")
{
print("\(prefix)type: \(type(of: entity)) name: \(entity.name)")
for child in entity.children {
displayEntityTree(entity: child, prefix: "\(prefix)*")
}
}
Somewhere in your console output you will probably see something like
type: Box name:
*type: AnchorEntity name:
**type: Entity name:
***type: Entity name: Steel Box
****type: ModelEntity name: simpBld_root
**type: Entity name: Ground Plane
Later, you could add code to, say, clone the entity names "Steel Box".
You might want to look for sample code for raycasting to find a place to put the object.
Here is some good documentation to start browsing:
https://developer.apple.com/documentation/realitykit/entity
https://developer.apple.com/documentation/realitykit
If you are really new, I suggest you start with some tutorials on using Xcode, putting buttons on screen, and responding to actions (e.g., someone touching the button). Later you can move into AR. I wouldn't jump into AR cold.