Errors when trying to side load VR project to Meta Headset

I developed the application in the Windows/Mac platform and when attempting to side load the vr project to the headset, I switch to the Android platform to build. When I try to build, however, the build fails and the following errors appear.

If i run the project in the Windows platform in the game console, I do not get any errors. Additionally, when I created a new empty project and tried to build, following the same steps, I got no errors.

I was wondering if anyone had the same issue or knew what I could do to fix the issue?

1 Answer

1

Are you using assembly definitons?
If so, make an editor definition in Editor classes.
This class should not be included in a build since it accesses the Editor scripts

I tried to add an editor definition in the Editor classes for the "Table and chair." I changed the first line in the file to include UnityEditor.[...], like in the photo attached below https://imgur.com/a/oNrZWNf However, then I get these errors and the project will only open in safe mode. https://imgur.com/XW2l17J I was wondering if you could expand on the editor definitions I should add, or if you had any suggestions on how I can fix these new errors? Thank you!!

You have to add the DoF namespace to the DoF editor namespace