Skip to main content
Participant
December 15, 2018

Latest "Oculus Integration 1.32" - 'System.Security' error. Can't use headset at all.

Hi,

downloaded latest "Oculus Integration" I can't run anything in Unity 2018.3.0f2 or 2018.2.19f1 I'm getting this error: 

Assets\Oculus\Avatar\Scripts\OvrAvatarSkinnedMeshRenderPBSV2Component.cs(4,23): error CS0234: The type or namespace name 'Policy' does not exist in the namespace 'System.Security' (are you missing an assembly reference?)

This is from an empty scene, just loading the new "oculus integration' package. Updated oculus to all latest updates/firmware. Nothing will run because of this error. Not even the demo scenes. 
    This topic has been closed for replies.

    3 replies

    Up and Coming
    December 18, 2018
    I had the same issue, when I upgraded to Unity 2018.3 hopefully they fix this soon. 

    I fixed it by actually opening the OvrAvatarSkinnedMeshRenderPBSV2Component.cs file that gives the error and removing the import and I think it is safe to do so since that import is not being used throughout the file. 
    Up and Coming
    December 18, 2018
    I fixed this issue by changing the API Compatibility Level to .NET 4.x.
    Up and Coming
    December 28, 2018
    I fixed this by commented out the import statement in that file. It sounds like the right solution is what MikeSwanson posted above.