mapbox-unity-sdk
mapbox-unity-sdk copied to clipboard
MapManagerEditor crashing from time to time
- Unity version: 2021.2.x
- Mapbox SDK version: performance branch latest commit
Using performance branch AbstractMap / MapManagerEditor is crashing based on this line from time to time (can't reproduce what steps are causing it exactly):
The line which fails is this one:
The debug version of AbstractMap-Component looks like this when broken:
I checked out another project where the component is still working
it's obvious that the inspector drawing stops after the nullreference on mapvisualizer which should be an asset (scriptable object).
@brnkhy The property should be created automatically on accessing the property which also fails obviously
I'm having the same issue on 2019.4.36f1 w/ the Performance branch, I copied and pasted the map and the attribution to another scene and the GUI no longer functions correctly.
But if I run it, the issue persists. If I activate the map all the values reset and the GUI works how it should.
image
Scripting backend: Mono NET comp - 2.0 Win7 64bit If I'm leaving any information out please let me know.
Edit: I had to delete the "MapboxUnitTests_AbstractMapTests.cs" because it threw quite a few compile errors. Issue still persists.
Maybe an investigation that could help solving the isse. I tried to create a MapVisualizer (Quad-Tree) Scriptable Object via Mapbox Context menu. The idea was to assign this object in debug mode of AbstractMap. But creating the editor-view of this object is failing:
maybe this is the source of all evil ? ^^
steps to reproduce:
- Create -> Mapbox ->MapVisualizer->QuadTreeMapVisualizer
- Select Asset
- trying to open any of the dropdowns (image,terrain,...) in the inspector
@Markovicho editor&UI is definitely one of my least favorite things about the SDK. This is probably one of the object drawers not working properly 🤔