I am new to SwiftUI, ARKit And RealityKit so sorry for my very basic question I have been told to use these methods to load models
Entity.load(named: "abc.usdz")
and
ModelEntity.load(named: "abc.usdz")
so what's the difference between a ModelEntity and Entity ?
First of all,
ModelEntity
is a child class of main parent nodes' class calledEntity
.According to documentation:
Often two Entity classes are interchangeable (when setting components). For example you can use
Entity
instead ofSpotLight
class.vs
However, the following example can be given as an exception. You need to exactly use
Entity
class when type casting.