Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Terrain error

Discussion in '2020.1 Beta' started by FireJojoBoy, May 2, 2020.

  1. FireJojoBoy

    FireJojoBoy

    Joined:
    Oct 30, 2019
    Posts:
    65
    Every time i want to edit my terrain this happens:

    My brush is set to "Raise or lower the Terrain"
    and everytime my mouse tuches the terrain, the screen in the scene view gets black and i get the following error message:


    upload_2020-5-2_16-12-17.png


    can someone please help me?
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,127
    Could you please submit a bug report with reproduction steps attached?
     
  3. RickardV

    RickardV

    Joined:
    Sep 20, 2020
    Posts:
    3
    Same here. I have a fresh install with a blanks scene, everything works except when I click raise/lower terrain Unity apparently gets a mental breakdown.

    Code (CSharp):
    1. ArgumentException: Object at index 0 is null
    2. UnityEditor.SerializedObject..ctor (UnityEngine.Object obj) (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    3. UnityEditor.Experimental.TerrainAPI.BaseBrushUIGroup.get_brushMaskFilterStackView () (at Library/PackageCache/com.unity.terrain-tools@3.0.1-preview/Editor/TerrainTools/BrushControllers/BaseBrushUIGroup.cs:66)
    4. UnityEditor.Experimental.TerrainAPI.BaseBrushUIGroup.OnSceneGUI (UnityEngine.Terrain terrain, UnityEditor.Experimental.TerrainAPI.IOnSceneGUI editContext) (at Library/PackageCache/com.unity.terrain-tools@3.0.1-preview/Editor/TerrainTools/BrushControllers/BaseBrushUIGroup.cs:519)
    5. UnityEditor.Experimental.TerrainAPI.PaintHeightTool.OnSceneGUI (UnityEngine.Terrain terrain, UnityEditor.Experimental.TerrainAPI.IOnSceneGUI editContext) (at Library/PackageCache/com.unity.terrain-tools@3.0.1-preview/Editor/TerrainTools/PaintHeightTool.cs:103)
    6. UnityEditor.TerrainInspector.OnSceneGUICallback (UnityEditor.SceneView sceneView) (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    7. UnityEditor.SceneView.CallOnSceneGUI () (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    8. UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    9. UnityEditor.SceneView.OnGUI () (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    10. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
    11. Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    12. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
    13. System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <9577ac7a62ef43179789031239ba8798>:0)
    14. UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    15. UnityEditor.HostView.Invoke (System.String methodName) (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    16. UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    17. UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    18. UnityEditor.DockArea.OldOnGUI () (at <e6e2fa0a47414cd2ac33237924761b45>:0)
    19. UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
    20. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    21.