Cannot add Meta Avatars SDK (v29.7.0) to a clean project in Unity. [Solved!]
Hello!
I am currently unable to set up the newest Meta Avatars SDK (v29.7.0). Every time I try to install, it raises the same three errors :
- Library\PackageCache\com.meta.xr.sdk.core@68.0.3\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\EntityInputManager.cs(31,17): error CS0103: The name 'BodyTracking' does not exist in the current context
- Library\PackageCache\com.meta.xr.sdk.core@68.0.3\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\EntityInputManager.cs(33,17): error CS0103: The name 'BodyTracking' does not exist in the current context
- Library\PackageCache\com.meta.xr.sdk.core@68.0.3\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\EntityInputManager.cs(34,17): error CS0103: The name 'BodyTracking' does not exist in the current context
Does anyone else seem to be having similar issues? Any insight as to why this might be happening, or if there are any steps to be taken to resolve this, would be greatly appreciated.
Thanks,
Mike.
[UPDATE : If this happens, first try going to the Packages folder in the Project tab, selecting the 'Meta XR Core SDK', right-clicking it and reimporting. Over a bunch of tests, this seems to fix the issue fairly reliably.]
For additional context, here are the steps I've taken leading to the issue :
- Starting from a clean base URP project in Unity 2022.3.42f1, I switched the build settings to Android, and configured a keystore for build signing.
- I installed Photon Fusion (2.0.3) and Photon Voice (2.56), and configured these to work with a photon cloud app. I then tested and confirmed that these were working as expected.
- I installed the Meta All-In-One SDK (v68.0.3) via the package manager, then applied all suggested project changes (graphics and lighting settings, manifest creation, etc...). I confirmed that these were working as expected.
- I configured the Oculus Platform Settings with a valid App ID and confirmed that the values were correct.
I then added the Meta Avatars SDK (v29.7.0) via the package manager. The package was installed, but when it compiling, the previously mentioned errors were thrown, preventing completion. To repeat the error (also thrown from lines 33 and 34):
- Library\PackageCache\com.meta.xr.sdk.core@68.0.3\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\EntityInputManager.cs(31,17): error CS0103: The name 'BodyTracking' does not exist in the current context
