Hello Apple People,
Have a really basic question about the API of RealityKit.
Question:
Am I correct in that Realitykit has two ways to add an AnchorEntity to the scene.AnchorCollection?
First way would be:
Summary
Adds an anchor to the scene’s list of anchors.
Declaration
func addAnchor(_ anchor: HasAnchoring)
Second way would be:
Summary
No overview available.
Declaration
func append(_ entity: Scene.AnchorCollection.Element)
Observation:
If you "dig into the weeds of the Realitykit " API you will see this:
typealias Scene.AnchorCollection.Element = HasAnchoring
I believe one could think of the RealityKit code this way:
func append(_ entity: HasAnchoring)
I know this is a basic question, but Any Apple Devloper or kind soul intrested in helping a fellow Apple coder would be much apprecated.
We all learn by sharing what we know
Smartdog