3

To my knowledge, Reality Composer Projects files .rcproject are commonly placed in Xcode projects along with all other source files, then the project can simply be referred to by its name:

enter image description here

For example, let boxAnchor = try! Prototyping.loadNameOfScene() is all that's needed to load a scene from the .rcproject named "Prototyping".

In Swift Playgrounds, however, the .rcproject just seems to get ignored when placed inside the resources folder, and when placed inside the sources folder, causes iPad playground to throw a compile error. Running the playground on iPad is necessary since Xcode cannot run AR. Regardless of what happens, the same line let boxAnchor = try! Prototyping.loadNameOfScene() now throws an error because "Prototyping" is not identified.

Is there any way to use .rcproject inside a Swift Playground?

Rashed Hasan
  • 3,721
  • 11
  • 40
  • 82
Lucas W
  • 125
  • 1
  • 10

0 Answers0