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

[BUG] Custom inspectors for systems and entities are broken #71

Open
JesseTG opened this issue Jul 25, 2023 · 0 comments
Open

[BUG] Custom inspectors for systems and entities are broken #71

JesseTG opened this issue Jul 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@JesseTG
Copy link
Contributor

JesseTG commented Jul 25, 2023

Describe the bug

Various custom inspectors are broken, as shown in the attached screenshots.

Unity Version:
Unity 2023.1.5f1

To Reproduce
Steps to reproduce the behavior:

  1. Open any scene in which entities and systems are used
  2. Select their associated objects in the hierarchy
  3. Look at the inspector

Expected behavior

The custom inspectors should render without issues.

Screenshots

Screenshot 2023-07-25 103139
Screenshot 2023-07-25 103118
Screenshot 2023-07-25 103056

Additional context

Here are some relevant exceptions:

[Exception] NullReferenceException: Object reference not set to an instance of an object
GUILayoutUtility.DoGetRect() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayoutUtility.GetRect() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayout.DoTextField() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayout.TextField() at <1b7ba2395c4741668d0e335ad4e651c7>:0
EditorGUILayoutTools.SearchTextField() at ./Library/PackageCache/[email protected]/Scripts/Editor/Tools/EditorGUILayoutTools.cs:148
EntityDrawer.DrawComponents() at ./Library/PackageCache/[email protected]/Scripts/Editor/Inspector/Entity/EntityDrawer.cs:340
EntityDrawer.DrawEntity() at ./Library/PackageCache/[email protected]/Scripts/Editor/Inspector/Entity/EntityDrawer.cs:216
EntityLinkInspector.OnInspectorGUI() at ./Library/PackageCache/[email protected]/Scripts/VisualDebugging/Editor/EntityLinkInspector.cs:63
InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0() at <8bcfff76472c48f096bf077900dc8a3a>:0
GUIUtility.ProcessEvent()
[Exception] ArgumentException: Getting control 0's position in a group with only 0 controls when doing repaint
Aborting
GUILayoutGroup.GetNext() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayoutUtility.DoGetRect() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayoutUtility.GetRect() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayout.DoTextField() at <1b7ba2395c4741668d0e335ad4e651c7>:0
GUILayout.TextField() at <1b7ba2395c4741668d0e335ad4e651c7>:0
EditorGUILayoutTools.SearchTextField() at ./Library/PackageCache/[email protected]/Scripts/Editor/Tools/EditorGUILayoutTools.cs:148
EntityDrawer.DrawComponents() at ./Library/PackageCache/[email protected]/Scripts/Editor/Inspector/Entity/EntityDrawer.cs:340
EntityDrawer.DrawEntity() at ./Library/PackageCache/[email protected]/Scripts/Editor/Inspector/Entity/EntityDrawer.cs:216
EntityLinkInspector.OnInspectorGUI() at ./Library/PackageCache/[email protected]/Scripts/VisualDebugging/Editor/EntityLinkInspector.cs:63
InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0() at <8bcfff76472c48f096bf077900dc8a3a>:0
GUIUtility.ProcessEvent()
@JesseTG JesseTG added the bug Something isn't working label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant