DavidPeicho / unity-swiftui-example

Integration example of the Unity engine in a SwiftUI-based application
MIT License
70 stars 15 forks source link

Error: Cannot find type 'UnityAPI' in scope #15

Closed khaneja closed 11 months ago

khaneja commented 11 months ago

Hello! I used your blog post for Unity-SwiftUI integration, but I'm encountering an error in "UnityBridge.swift":

Screenshot 2023-10-17 at 2 18 05 PM

Appreciate any help!

DavidPeicho commented 11 months ago

The API is created inside the Unity package, and must be visible in the xcode project. Did you follow the instruction about creating a custom AutoBuilder?

khaneja commented 11 months ago

That solved the issue. Thanks!