3D assets such as models, textures, animations, etc., can significantly inflate app bundle sizes. To mitigate this, loading these assets from a remote URL is the way to go. But how does someone load a ModelEntity from a hosted URL?
The current method is to load a Model3D:
let url = URL(string: "my-url")!
Model3D(url: url)
But this does not pack all the features of a ModelEntity which can be used in a RealityView. Such as anchoring, animations, advanced gestures, etc. How do I load a remote URL into a ModelEntity?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello, when calling the Swift openURL() method, Safari is opening at the origin (below the camera) instead of in front of the user.
If I open Safari via the home page, it opens in front of the user. Seems like a bug with Vision OS.
Is there something I am missing, and can others replicate the problem?
if let url = URL(string: myURL){
openURL(url)
}
Hello, how does one add the capability for a user to rotate an object inside the Vision OS?
I have tried to add a DragGesture to this to no avail, it will not register.
There must be something native we utilize to allow a user to manipulate a 3D Model.
This is how I am putting the model into the scene:
let loadedEntity = try await Entity.load(named: itemName in: RealityKitContent.realityKitContentBundle)
loadedEntity.generateCollisionShapes(recursive: true)
content.add(loadedEntity)