Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug EasyRoads3d doesn't work in Unity 2022.3.2f1

Discussion in 'Editor & General Support' started by magsoftware, Sep 5, 2023.

  1. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    110
    I cannot use EasyRoads3D in UNity version 2022.3.2f1. When I use GameObject->3D->EasyRoads3D -> New Road Network I get the following errors in the console:
    Code (CSharp):
    1. TypeLoadException: Could not resolve type with token 010000f9 from typeref (expected class 'UnityEditor.Experimental.SceneManagement.PrefabStage' in assembly 'UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null')
    2.  
    3.  
    4. NullReferenceException: Object reference not set to an instance of an object
    5. EasyRoads3Dv3Editor.ODQDCOOOQQ.OnInspectorGUI () (at <dd33561264d24db997cb26a555e2d9b7>:0)
    6. UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <ac87b54e58ee4be198261fd5c8030d52>:0)
    7. UnityEditor.InspectorWindow:RedrawFromNative()
    8.  
    9.  
    10.  
    11. NullReferenceException: Object reference not set to an instance of an object
    12. EasyRoads3Dv3Editor.ODQDCOOOQQ.OnInspectorGUI () (at <dd33561264d24db997cb26a555e2d9b7>:0)
    13. UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <ac87b54e58ee4be198261fd5c8030d52>:0)
    14. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    15.  
    How to fix it?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    I would start by looking at their pinned forum post, the one for easy roads.

    Otherwise, if you want to tackle it yourself, then...

    The answer is always the same... ALWAYS!

    How to fix a NullReferenceException error

    https://forum.unity.com/threads/how-to-fix-a-nullreferenceexception-error.1230297/

    Three steps to success:
    - Identify what is null <-- any other action taken before this step is WASTED TIME
    - Identify why it is null
    - Fix that
     
    magsoftware likes this.