Skybox for iOS/swiftUI not working

I have tried every combination of suggestions to get a skybox to appear. Using swiftUI, realityKit and iOS. Non immersive environment. Does anyone have code that works to display a skybox.

When i use a do/catch loop i get environmentResource not found. I have checked the syntax, ensured the folder is referencing the target, used the same name for the folder as the file, the file is a .hdr (i assume this is supported), i have moved the file folder to the top level - no change.

Hi @BrianMcDonald

Does the name of the folder containing your environment resource texture end in .skybox?

As the Create a skybox folder section of the EnvironmentResource documentation describes, you must place your environment resource texture into a folder with a name that ends in .skybox. That documentation also confirms that .hdr files are supported.

Let me know if you're still running into issues loading the environment resource after following those steps, and I can investigate further!

Thanks - I think I figured out how to get a Joey skybox. Looks like the problem is trying to use the .exr format with dynamic lighting.

i think it’s just the syntax now for the methods.

Thanks for the support

Skybox for iOS/swiftUI not working
 
 
Q