Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

UnityEvent Inspector bug at Unity 2020.3

$
0
0
Greetings, everyone and thank you for your time. I have experienced that Unity has a bug related to **UnityEvents** at 2020.3 (at least 2020.3.1f1 and 2020.3.14f1). The bug is about Unity's default inspector being unable to correctly draw UnityEvents of a class or struct A that is contained inside a list or array in a list B. Here I post some of my tests about this behaviour. **This is the correct UnityEvent inspector (Top) VS this is how it is displaying (Bottom)**![alt text][1] Also the console prompts this **error message**: *type is not a enum value UnityEditor.SerializedProperty:get_enumValueIndex () UnityEditorInternal.UnityEventDrawer:GetMode (UnityEditor.SerializedProperty) UnityEditorInternal.UnityEventDrawer:DrawEvent (UnityEngine.Rect,int,bool,bool) UnityEditorInternal.ReorderableList:DoListElements (UnityEngine.Rect,UnityEngine.Rect) UnityEditorInternal.ReorderableList:DoList (UnityEngine.Rect,UnityEngine.Rect) UnityEditorInternal.ReorderableList:DoList (UnityEngine.Rect) UnityEditorInternal.UnityEventDrawer:OnGUI (UnityEngine.Rect) UnityEditorInternal.UnityEventDrawer:OnGUI (UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent) UnityEditor.PropertyHandler:OnGUI (UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent,bool) UnityEditorInternal.ReorderableList/Defaults:DrawElement (UnityEngine.Rect,UnityEditor.SerializedProperty,object,bool,bool,bool,bool) UnityEditorInternal.ReorderableList:DoListElements (UnityEngine.Rect,UnityEngine.Rect) UnityEditorInternal.ReorderableList:DoList (UnityEngine.Rect,UnityEngine.Rect) UnityEditorInternal.ReorderableListWrapper:Draw (UnityEngine.GUIContent,UnityEngine.Rect,UnityEngine.Rect,bool) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)* **This is the code I used to generate this issue**![alt text][2] **These are the steps for the issue to happen:** 1. Open a default inspector tab of the script "Test". 2. Select a B Object on the inspector (doesn't matter if the single B or a listed one) . 3. Create an A Object on the list/array of the B Object. 4. Initialize the A Object (in the list/array) event. This is when the issue happens. Thank you for your time. Regards. [1]: /storage/temp/183559-untitled.png [2]: /storage/temp/183560-captura-de-pantalla-2021-07-16-135059.png

Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>