Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vuforia Dataset Loading #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mtsdnz
Copy link

@mtsdnz mtsdnz commented Jul 17, 2018

As mentioned on issue f111fei/react-native-unity-view#20, when we try to use a project with Vuforia on iOS, the Vuforia Dataset isn't being loaded:

Dataset Foo could not be loaded and cannot be activated.

Because of this, the recognition doesn't work.

We can fix it simple dragging the Data/Raw/Vuforia folder from the UnityExport directory to the UnityExport group in Xcode, selecting Create folder references.

I've changed the XCodePostBuild.cs file to check if the Vuforia folder exists in the Data/Raw directory, and if it exists, we create a reference of it on UnityExport folder.

This fixes the issue.

@mtsdnz mtsdnz changed the title fix issue #20 fix Vuforia Dataset Loading Jul 17, 2018
@mtsdnz mtsdnz changed the title fix Vuforia Dataset Loading Fix Vuforia Dataset Loading Jul 17, 2018
@f111fei
Copy link
Owner

f111fei commented Jul 19, 2018

The demo is only an Cube project. So your PR may not be merged. But I think it's going to be useful for people who use Vuforia. Thank you.

@mtsdnz
Copy link
Author

mtsdnz commented Jul 19, 2018

I've created the pull request here because on README of the react-native-unity-view you reference the XCodePostBuild.cs from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants