mapbox / mapbox/mapbox-unity-sdk
"Find" method call in MapboxMapBehaviour causes NullArgumentException in android builds
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 784
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
Line 113 in MapboxMapBehaviour.cs: var defaultMapboxTerrainMaterial = new Material(Shader.Find(Constants.Map.DefaultTerrainShaderName));
Constants.Map.DefaultTerrainShaderName is "Shader Graphs/ElevatedTerrainShader"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at line 113 of MapboxMapBehaviour.cs and inspect Constants.Map.DefaultTerrainShaderName, which is "Shader Graphs/ElevatedTerrainShader". Reproduce the Android build failure and trace why the Find call leads to NullArgumentException. Done means Android builds no longer hit this exception while handling the default terrain shader.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp, unity
- Domain
- game-dev, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100