Vuforia initializeOnLoad not found

Assets\Editor\Migration\AddVuforiaEnginePackage.cs(8,2): error CS0246: The type or namespace name ‘InitializeOnLoad’ could not be found (are you missing a using directive or an assembly reference?)

Sika_MC’s answer didn’t solve this for me.

I had to #if UNITY_EDITOR the entire class to get it to build for mobile device.


Add using Vuforia in your script.

Thank you.

Vuforia Engine Support

Hi, I’m struggling with the same issue. None of the Answers worked for me. Am I doing something wrong? How do I #if UNITY_EDITOR the entire class? Thanks!