Hello.
I've been trying to load a skybox asset using RealityKit inside the Swift Playgrounds App. Since loading a resource file using Swift Playgrounds App requires a bit of hacking inside the Package.swift file, I've modify some configuration inside the Package() class.
Package.swift Configurations
targets: [
.executableTarget(
name: "AppModule",
path: ".",
resources: [.copy("Assets/")]
)
],
I've also use this, just in case.
targets: [
.executableTarget(
name: "AppModule",
path: ".",
resources: [.process("Assets/")]
)
],
Running the app causes runtime error and outputs a resourceLoadFailure error shown below.
Task 2: Fatal error: 'try!' expression unexpectedly raised an error: RealityKit.EnvironmentResource.(unknown context at $238b95db0).LoadError.resourceLoadFailure("Assets/DaySkyHDRI003B_4K_HDR.skybox")
I've also tried this solution from StackOverflow but no result. Are there any workarounds or is this some limitation that Swift Playgrounds has?