Git Product home page Git Product logo

Comments (8)

Discipol avatar Discipol commented on May 11, 2024 2

I also get this when inspecting any entity in 2022.3.4

from entitas.

RouderSky avatar RouderSky commented on May 11, 2024
ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEngine.GUILayoutUtility.DoGetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEngine.GUILayoutUtility.GetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEngine.GUILayout.DoButton (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEngine.GUILayout.Button (System.String text, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <44335255efcb428fb633c913db3eed7a>:0)
DesperateDevs.Unity.Editor.EditorLayout.miniButton (System.String c, UnityEngine.GUIStyle style) (at <055a4d22d68a41038b16fe2b4ed852d5>:0)
DesperateDevs.Unity.Editor.EditorLayout.MiniButton (System.String c) (at <055a4d22d68a41038b16fe2b4ed852d5>:0)
Entitas.VisualDebugging.Unity.Editor.EntityDrawer.DrawObjectMember (System.Type memberType, System.String memberName, System.Object value, System.Object target, System.Action2[T1,T2] setValue) (at <67872ecda0424e09adcde3cfef7ad8d6>:0) Entitas.VisualDebugging.Unity.Editor.EntityDrawer.DrawObjectMember (System.Type memberType, System.String memberName, System.Object value, System.Object target, System.Action2[T1,T2] setValue) (at <67872ecda0424e09adcde3cfef7ad8d6>:0)

from entitas.

RouderSky avatar RouderSky commented on May 11, 2024
ArgumentException: Getting control 0's position in a group with only 0 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEngine.GUILayoutUtility.GetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <44335255efcb428fb633c913db3eed7a>:0)
UnityEditor.EditorGUILayout.GetToggleRect (System.Boolean hasLabel, UnityEngine.GUILayoutOption[] options) (at <11d97693183d4a6bb35c29ae7882c66b>:0)
UnityEditor.EditorGUILayout.Toggle (UnityEngine.GUIContent label, System.Boolean value, UnityEngine.GUILayoutOption[] options) (at <11d97693183d4a6bb35c29ae7882c66b>:0)
UnityEditor.EditorGUILayout.Toggle (System.String label, System.Boolean value, UnityEngine.GUILayoutOption[] options) (at <11d97693183d4a6bb35c29ae7882c66b>:0)
Entitas.VisualDebugging.Unity.Editor.BoolTypeDrawer.DrawAndGetNewValue (System.Type memberType, System.String memberName, System.Object value, System.Object target) (at <67872ecda0424e09adcde3cfef7ad8d6>:0)
Entitas.VisualDebugging.Unity.Editor.EntityDrawer.DrawObjectMember (System.Type memberType, System.String memberName, System.Object value, System.Object target, System.Action2[T1,T2] setValue) (at <67872ecda0424e09adcde3cfef7ad8d6>:0) Entitas.VisualDebugging.Unity.Editor.EntityDrawer.DrawObjectMember (System.Type memberType, System.String memberName, System.Object value, System.Object target, System.Action2[T1,T2] setValue) (at <67872ecda0424e09adcde3cfef7ad8d6>:0)

from entitas.

sschmid avatar sschmid commented on May 11, 2024

Hi! Can you pls post you component?
I assume it doesn't have a non trivial type. Entitas entity drawer in Visual Debugging tries to draw any kind of type, in some cases it cannot find a way and will result in a stack overflow. In this case you can either choose to implement your own TypeDrawer or ComponentDrawer, see examples

or add an attribute to now draw the component

from entitas.

RouderSky avatar RouderSky commented on May 11, 2024

I don't know which component caused the crash, because there are many components on this GameObject

from entitas.

alex-moonlitgames avatar alex-moonlitgames commented on May 11, 2024

This is potentially a duplicate of #1067

from entitas.

RouderSky avatar RouderSky commented on May 11, 2024

I know which component is causing the problem
微信截图_20230722170518
I suspect it is AniLayerCfg, can it not be drawn in the inspector interface?
@sschmid

from entitas.

sschmid avatar sschmid commented on May 11, 2024

Yes, see comment above: #1064 (comment)

Add [DontDrawComponent] or implement a custom drawer for the component, like

public class Vector3TypeDrawer : ITypeDrawer

from entitas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.