Пример #1
0
        private void DrawItem(Rect rect, int index, bool isActive, bool isFocused)
        {
            if (m_ItemList.serializedProperty.arraySize > index)
            {
                SerializedProperty item        = m_ItemList.serializedProperty.GetArrayElementAtIndex(index);
                SerializedProperty displayProp = item.FindPropertyRelative("m_DisplayName");

                string toUse = (displayProp.stringValue == string.Empty) ? "m_Name" : "m_DisplayName";

                ItemManagementUtility.DrawListElementByName(m_ItemList, index, rect, toUse, isFocused, this);
            }
        }
Пример #2
0
 private void DrawCategory(Rect rect, int index, bool isActive, bool isFocused)
 {
     ItemManagementUtility.DrawListElementByName(m_CategoryList, index, rect, "m_Name", isFocused, this);
 }