'swift , load model function can't play animation but load function I can play

 let me=try! ModelEntity.load(named: filename)
        print("count is \(me.availableAnimations.count)" )

        
        
        print("\(me.availableAnimations.count) model animation number model entity is ")

above is that I use load function, but availableAnimations.count is 1 so I can play

let me=try! ModelEntity.loadModel(named: filename)

        print("\(me.availableAnimations.count) model animation number model entity is")

but with loadModel function, availableAnimations.count is 0 so I can't play animation

is it possible for me to play animation with loadModel function?

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source