Task [Start Equip Unequip] Inspector error: CategoryName null

vodinh

Member
The inspector of Star Equip Unequip error:
1678011175030.png


1678011633327.png
C#:
public class ItemSetCategoryDrawer : ObjectDrawer
    {
        public override void OnGUI(GUIContent label)
        {
            // ItemSetManagerBase must exist for the categories to be populated.
            var itemSetManager = GameObject.FindObjectOfType<ItemSetManagerBase>();
            if (itemSetManager == null) {
                return;
            }
            itemSetManager.Initialize(false);


            if (itemSetManager.ItemSetGroups == null || itemSetManager.ItemSetGroups.Length == 0) {
                return;
            }


            // Draw a popup with all of the ItemSet groups.
            var categoryID = (value as SharedUInt).Value;
            var selected = -1;
            var categoryNames = new string[itemSetManager.ItemSetGroups.Length];
            for (int i = 0; i < categoryNames.Length; ++i) {
                categoryNames[i] = itemSetManager.ItemSetGroups[i].CategoryName;
                if (categoryID == itemSetManager.ItemSetGroups[i].CategoryID) {
                    selected = i;
                }
            }
            var newSelected = EditorGUILayout.Popup("ItemSet Category", (selected != -1 ? selected : 0), categoryNames);
            if (selected != newSelected || categoryID == 0) {
                (value as SharedUInt).Value = itemSetManager.ItemSetGroups[newSelected].CategoryID;
            }
        }
    }
 
Thanks - this is caused by the same error in this post and requires a character controller update in order to fix. This will be in 3.0.7 that is going out hopefully this week.
 
Thanks - this is caused by the same error in this post and requires a character controller update in order to fix. This will be in 3.0.7 that is going out hopefully this week.
I found an error on TrajectoryObjectInspector line 88 to 90:

C#:
m_ImpactFoldout.Add(GetPropertyField("m_InternalImpact"));
m_ImpactFoldout.Add(GetPropertyField("m_DefaultImpactDamageData"));
m_ImpactFoldout.Add(GetPropertyField("m_ImpactActionGroup"));

Three properties does not exist in TrajectoryObject.cs
Hope you already know it.
 
Top