Skip to content

Index was outside of bounds of the array error: #3

@mikeny07

Description

@mikeny07

I got the following error when generating the terrain:

IndexOutOfRangeException: Index was outside the bounds of the array.
ForestGenerator.Generate (System.Single[,] heightMap, UnityEngine.Vector3[] normals, System.Single waterLevel, System.Int32 seed) (at Assets/TerrainGenerator/MgeeGames/ProceduralTerrainGenerator/Scripts/ForestGenerator.cs:86)
TerrainMapGenerator.CreateForest (System.Single[,] heightMap, UnityEngine.Vector3[] terrainNormals) (at Assets/TerrainGenerator/MgeeGames/ProceduralTerrainGenerator/Scripts/TerrainMapGenerator.cs:270)
TerrainMapGenerator.Update () (at Assets/TerrainGenerator/MgeeGames/ProceduralTerrainGenerator/Scripts/TerrainMapGenerator.cs:151)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <33518779906b403ba9f96eccba6a861b>:0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions