Unity 2018升级至2019.3后Vuforia兼容异常问题求助
Hey there, I’ve dealt with this exact migration headache before—moving a Unity 2018 project with Vuforia 8 to Unity 2019 and updating to Vuforia 9 often leaves leftover files or broken references that cause issues. Here’s a step-by-step breakdown of the fixes that usually resolve this:
Completely purge old Vuforia 8 files first
Half the battle is cleaning up leftover Vuforia 8 assets that conflict with Vuforia 9:- Open
Window > Package Manager, locate the Vuforia AR package, and uninstall it. - Navigate to your project’s
Assetsfolder and delete any remainingVuforiadirectories or stray Vuforia-related files. - Head to
Project Settings > Player > Other Settingsand remove any Vuforia-specific entries from theScripting Define Symbolsfield. - Restart Unity to ensure all old cached files are cleared.
- Open
Install Vuforia 9 properly for Unity 2019
Unity 2019 uses the Package Manager for Vuforia, but a manual git install often avoids version mismatches:- In the Package Manager, click the
+icon in the top-left, selectAdd package from git URL, and pastecom.ptc.vuforia.engine—this pulls the latest Vuforia 9 version compatible with Unity 2019. - Once installed, open
Window > Vuforia Configurationto confirm the setup, and double-check that your Vuforia license key is correctly entered (old keys can fail after version jumps).
- In the Package Manager, click the
Repair broken scene and prefab references
Vuforia 9 made subtle changes to component namespaces and assemblies, which breaks old references:- Open each scene with AR content, select your Image Targets and AR objects, and check the Inspector for missing or broken scripts.
- If you see "Missing Script" errors, reassign the updated Vuforia 9 scripts (most class names like
ImageTargetBehaviourare the same, but they’re now in theVuforiaassembly). - For prefabs, right-click the prefab in the Project window, select
Select Prefab Instance, then useRevertorApplyto sync the prefab with the new component versions.
Update Unity 2019 player settings for Vuforia
Unity 2019 has key settings that Vuforia 9 requires:- Go to
Project Settings > Player > Other Settingsand setScripting Runtime Versionto.NET 4.x Equivalent—Vuforia 9 doesn’t work well with the older runtime. - Enable
Vuforia Augmented Reality SupportunderXR Settings(this is where Unity 2019 manages AR providers). - For mobile builds, confirm your minimum API level meets Vuforia 9’s requirements: Android needs API level 21+, iOS needs iOS 11+.
- Go to
Check platform-specific build configurations
Sometimes issues are isolated to Android or iOS:- Android: Verify your
Android SDKandNDKversions inEdit > Preferences > External Toolsmatch Vuforia 9’s recommendations (Unity 2019 works best with SDK 29+ and NDK r21b). - iOS: Ensure you’re using an Xcode version compatible with Unity 2019, and reimport Vuforia assets via the Package Manager if you see iOS build errors.
- Android: Verify your
If all else fails, create a fresh Unity 2019 project, install Vuforia 9, then manually import your assets and scenes one by one. This helps identify if the problem comes from corrupted project meta files or leftover settings.
内容的提问来源于stack exchange,提问作者Tom

