Skip to content

Commit 073e4d0

Browse files
committed
nityEditor crashes or gives NullReferenceError when opening Table Visualizer window for the first time ISSUE SOLVED
1 parent 9eba8ca commit 073e4d0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Assets/TableForge/Editor/UI/Windows/TableVisualizerWindow/TableVisualizer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ private void CreateGUI()
2727

2828
UiConstants.OnStylesInitialized += PopulateWindow;
2929
UiConstants.InitializeStyles(rootVisualElement[0]);
30-
31-
EditorApplication.projectChanged += OnProjectChanged;
32-
EditorApplication.update += Update;
33-
InspectorChangeNorifier.OnScriptableObjectModified += OnScriptableObjectModified;
3430
}
3531

3632
private void PopulateWindow()
@@ -53,6 +49,10 @@ private void PopulateWindow()
5349
_toolbarController = new ToolbarController(toolbar, this);
5450

5551
UiConstants.OnStylesInitialized -= PopulateWindow;
52+
53+
EditorApplication.projectChanged += OnProjectChanged;
54+
EditorApplication.update += Update;
55+
InspectorChangeNorifier.OnScriptableObjectModified += OnScriptableObjectModified;
5656
}
5757

5858
public void SetTable(Table table)

UserSettings/Layouts/default-6000.dwlt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MonoBehaviour:
1919
width: 1920
2020
height: 989
2121
m_ShowMode: 4
22-
m_Title: Inspector
22+
m_Title: Table Visualizer
2323
m_RootView: {fileID: 2}
2424
m_MinSize: {x: 875, y: 300}
2525
m_MaxSize: {x: 10000, y: 10000}
@@ -118,7 +118,7 @@ MonoBehaviour:
118118
m_MinSize: {x: 300, y: 100}
119119
m_MaxSize: {x: 24288, y: 16192}
120120
vertical: 1
121-
controlID: 136
121+
controlID: 120
122122
draggingID: 0
123123
--- !u!114 &6
124124
MonoBehaviour:
@@ -144,7 +144,7 @@ MonoBehaviour:
144144
m_MinSize: {x: 300, y: 100}
145145
m_MaxSize: {x: 24288, y: 16192}
146146
vertical: 0
147-
controlID: 137
147+
controlID: 121
148148
draggingID: 0
149149
--- !u!114 &7
150150
MonoBehaviour:
@@ -227,7 +227,7 @@ MonoBehaviour:
227227
m_MinSize: {x: 200, y: 50}
228228
m_MaxSize: {x: 16192, y: 8096}
229229
vertical: 0
230-
controlID: 50
230+
controlID: 26
231231
draggingID: 0
232232
--- !u!114 &10
233233
MonoBehaviour:
@@ -4371,8 +4371,8 @@ MonoBehaviour:
43714371
m_IsLocked: 0
43724372
m_FolderTreeState:
43734373
scrollPos: {x: 0, y: 293}
4374-
m_SelectedIDs: 7abe0000
4375-
m_LastClickedID: 48762
4374+
m_SelectedIDs: 98be0000
4375+
m_LastClickedID: 48792
43764376
m_ExpandedIDs: 000000007ebe000080be000082be000084be000086be000088be00008abe00008cbe00008ebe000090be000092be000094be000096be000098be00009abe0000
43774377
m_RenameOverlay:
43784378
m_UserAcceptedRename: 0
@@ -4430,7 +4430,7 @@ MonoBehaviour:
44304430
m_ListAreaState:
44314431
m_SelectedInstanceIDs:
44324432
m_LastClickedInstanceID: 0
4433-
m_HadKeyboardFocusLastEvent: 1
4433+
m_HadKeyboardFocusLastEvent: 0
44344434
m_ExpandedInstanceIDs: c623000050370100e00f010082be0300a232010064340100fe20ffff6e20ffff2cbc000000000000c07e0000
44354435
m_RenameOverlay:
44364436
m_UserAcceptedRename: 0
@@ -4456,7 +4456,7 @@ MonoBehaviour:
44564456
m_Icon: {fileID: 0}
44574457
m_ResourceFile:
44584458
m_NewAssetIndexInList: -1
4459-
m_ScrollPosition: {x: 0, y: 66}
4459+
m_ScrollPosition: {x: 0, y: 6}
44604460
m_GridSize: 74
44614461
m_SkipHiddenPackages: 0
44624462
m_DirectoriesAreaWidth: 194

0 commit comments

Comments
 (0)