Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted Unity.MARS.MarsUserPrefernces' is missing the class atribute...

Discussion in 'Unity MARS' started by cam415, Nov 3, 2020.

  1. cam415

    cam415

    Joined:
    Mar 26, 2014
    Posts:
    45
    I keep getting this error in my console window-

    'Unity.MARS.MarsUserPreferences' is missing the class attribute 'ExtensionOfNativeClass'!
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Everything seems to be building fine but wanted to check how to get rid of it.
    Thanks!
     
  2. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    139
    Hi there! This can happen as a result of upgrading your project from using MARS 1.0.x to 1.1.x. This type used to be a ScriptableObject and is now a static class. The old `MarsUserPreferences.asset` file is probably still in your project, and Unity is trying to create the backing object for it and you see this error as a result.

    Just delete the offending file (should be under `Assets/MARS/UserSettings`) and the error should go away.
     
  3. cam415

    cam415

    Joined:
    Mar 26, 2014
    Posts:
    45

    Ahh that did it. Thank you!
     
    jmunozarUTech likes this.
unityunity