Forum Discussion

RageAgainstThePixel's avatar
7 months ago
Solved

Meta XR Core ​SDK 71.0.0 Import Bugs

Getting the following warnings and errors after updating from 69.0.2 -> 71.0.0 in Unity 6000.0.23f1

 

 

 

Library\PackageCache\com.meta.xr.sdk.core\Editor\OVRSceneVolumeEditor.cs(26,37): error CS0118: 'Editor' is a namespace but is used like a type
 
Library\PackageCache\com.meta.xr.sdk.core\Editor\OVRSceneAnchorEditor.cs(26,37): error CS0118: 'Editor' is a namespace but is used like a type
 
Library\PackageCache\com.meta.xr.sdk.core\Editor\OVRScenePlaneEditor.cs(27,36): error CS0118: 'Editor' is a namespace but is used like a type
 
Library\PackageCache\com.meta.xr.sdk.core\Editor\OVRSemanticClassificationEditor.cs(26,48): error CS0118: 'Editor' is a namespace but is used like a type
 
'Meta.XR.MultiplayerBlocks.Shared.IAvatarBehaviour' is missing the class attribute 'ExtensionOfNativeClass'!
UnityEditor.AssetDatabase:LoadAssetAtPath<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition> (string)
Unity.Services.Deployment.Editor.Shared.Assets.ObservableAssets`1<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition>:AllAssetsPostprocessed (object,Unity.Services.Deployment.Editor.Shared.Assets.PostProcessEventArgs) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/ObservableAssets.Gen.cs:66)
Unity.Services.Deployment.Editor.Shared.Assets.AssetPostprocessorProxy:OnPostprocessAllAssets (string[],string[],string[],string[],bool) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/AssetPostprocessorProxy.Gen.cs:24)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)
 
GameObject (named 'FusionAvatarSdk28Plus') references runtime script in scene file. Fixing!
UnityEditor.AssetDatabase:LoadAssetAtPath<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition> (string)
Unity.Services.Deployment.Editor.Shared.Assets.ObservableAssets`1<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition>:AllAssetsPostprocessed (object,Unity.Services.Deployment.Editor.Shared.Assets.PostProcessEventArgs) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/ObservableAssets.Gen.cs:66)
Unity.Services.Deployment.Editor.Shared.Assets.AssetPostprocessorProxy:OnPostprocessAllAssets (string[],string[],string[],string[],bool) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/AssetPostprocessorProxy.Gen.cs:24)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)
 
'Meta.XR.MultiplayerBlocks.Shared.IAvatarBehaviour' is missing the class attribute 'ExtensionOfNativeClass'!
UnityEditor.AssetDatabase:LoadAssetAtPath<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition> (string)
Unity.Services.Deployment.Editor.Shared.Assets.ObservableAssets`1<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition>:AllAssetsPostprocessed (object,Unity.Services.Deployment.Editor.Shared.Assets.PostProcessEventArgs) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/ObservableAssets.Gen.cs:66)
Unity.Services.Deployment.Editor.Shared.Assets.AssetPostprocessorProxy:OnPostprocessAllAssets (string[],string[],string[],string[],bool) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/AssetPostprocessorProxy.Gen.cs:24)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)
 
'Meta.XR.MultiplayerBlocks.Shared.IAvatarBehaviour' is missing the class attribute 'ExtensionOfNativeClass'!
UnityEditor.AssetDatabase:LoadAssetAtPath<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition> (string)
Unity.Services.Deployment.Editor.Shared.Assets.ObservableAssets`1<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition>:AllAssetsPostprocessed (object,Unity.Services.Deployment.Editor.Shared.Assets.PostProcessEventArgs) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/ObservableAssets.Gen.cs:66)
Unity.Services.Deployment.Editor.Shared.Assets.AssetPostprocessorProxy:OnPostprocessAllAssets (string[],string[],string[],string[],bool) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/AssetPostprocessorProxy.Gen.cs:24)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)
 
GameObject (named 'AvatarNGOSdk28Plus') references runtime script in scene file. Fixing!
UnityEditor.AssetDatabase:LoadAssetAtPath<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition> (string)
Unity.Services.Deployment.Editor.Shared.Assets.ObservableAssets`1<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition>:AllAssetsPostprocessed (object,Unity.Services.Deployment.Editor.Shared.Assets.PostProcessEventArgs) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/ObservableAssets.Gen.cs:66)
Unity.Services.Deployment.Editor.Shared.Assets.AssetPostprocessorProxy:OnPostprocessAllAssets (string[],string[],string[],string[],bool) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/AssetPostprocessorProxy.Gen.cs:24)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)
 
'Meta.XR.MultiplayerBlocks.Shared.IAvatarBehaviour' is missing the class attribute 'ExtensionOfNativeClass'!
UnityEditor.AssetDatabase:LoadAssetAtPath<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition> (string)
Unity.Services.Deployment.Editor.Shared.Assets.ObservableAssets`1<Unity.Services.Deployment.Editor.DeploymentDefinitions.DeploymentDefinition>:AllAssetsPostprocessed (object,Unity.Services.Deployment.Editor.Shared.Assets.PostProcessEventArgs) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/ObservableAssets.Gen.cs:66)
Unity.Services.Deployment.Editor.Shared.Assets.AssetPostprocessorProxy:OnPostprocessAllAssets (string[],string[],string[],string[],bool) (at ./Library/PackageCache/com.unity.services.deployment/Editor/Shared/Assets/AssetPostprocessorProxy.Gen.cs:24)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[],bool)

 

 

  • tdmowrer's avatar
    tdmowrer
    7 months ago

    This appears to be a recent change to Unity's Addressables package. 2.3.7 introduces a new namespace called "Editor". Since our Core SDK references this assembly, this is now a name collision between the "UnityEditor.Editor" classname and the Addressable namespace called "Editor". See this thread for more details: https://discussions.unity.com/t/addressables-2-3-7-compile-error-editor-is-a-namespace-but-is-used-like-a-type/1578531

    We can change the Core SDK to eliminate this name collision in future versions (that is, apply the same change you mentioned above), but for now you'll either have to modify the Core SDK as an embedded package, or use a different version of Unity's Addressables package.

7 Replies

  • This looks like an issue importing the new package (I've seen something similar before). Could you try reimporting the script assets? From the "Project" window, navigate to Packages > Meta XR Core SDK > right click and select "Reimport".

    If all else fails, try removing the Library folder.

    • Of course I tried these things and only workaround was to roll back to v69. But our project requires the new features in v71. The issues seems to be that the namespace is now missing in the library for the editor folder. Please fix it. I was able to fix locally but I don't like having an embedded package in project for long term. Only acceptable for temporary fixes. 

      • tdmowrer's avatar
        tdmowrer
        Meta Employee

        Hmm, I just created a new project in 600.0.23f1, installed the v69 all-in-one package, then updated it to v71 without issue.  Could you share the following?

        1. Project manifest (Packages/manifest.json)
        2. List of scripting defines (Player Settings > Other Settings > Script Compilation)

        The issues seems to be that the namespace is now missing in the library for the editor folder. Please fix it. I was able to fix locally...

        What fix did you apply locally?