Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikeny07 opened this issue Aug 4, 2022 · 0 comments
Open

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

mikeny07 opened this issue Aug 4, 2022 · 0 comments

Comments

@mikeny07
Copy link

mikeny07 commented Aug 4, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant