MetaMask / MetaMask/metamask-sdk

[Unity SDK] Config Dialog not saving data

Open
#250 0 comments 0 reactions 3 assignees Claimed by @christopherferreira9 View on GitHub
unity
Dominant language
TypeScript
Stars
338
Forks
260
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The config dialog in the Unity Editor is not saving the input data and it is throwing the following errors:
```
NullReferenceException: Object reference not set to an instance of an object
MetaMask.Unity.MetaMaskWindow.LoadSettings (MetaMask.Unity.MetaMaskConfig metaMaskConfig, MetaMask.Transports.Unity.UI.MetaMaskUnityUITransport metaMaskUIConfig, MetaMask.Unity.MetaMaskWindow window) (at Assets/MetaMask/Editor/EditorGUI/MetaMaskWindow.cs:246)
MetaMask.Unity.MetaMaskWindow.ShowWindow () (at Assets/MetaMask/Editor/EditorGUI/MetaMaskWindow.cs:86)
```

```
GUI Error: Invalid GUILayout state in MetaMaskWindow view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190)
```

**To Reproduce**
Steps to reproduce the behaviour:
1. In the Unity Editor go to: Window -> MetaMask -> Setup Window
2. Change a few of the values
3. Press Apply
4. See error

**Expected behaviour**
- To be reworked to a better approach

**Screenshots**
-

** Provide environment information**
- MetaMask Unity plugin v1.1.3

**Additional context**
-

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.