Пример #1
0
 private void AddItemRows(VisualElement root, SerializedProperty property)
 {
     Sibz.ListElement.RowGenerator rowGenerator = new Sibz.ListElement.RowGenerator(Options.ItemTemplateName);
     for (int i = 0; i < property.arraySize; i++)
     {
         root.Q <VisualElement>(null, UxmlClassNames.ItemsSectionClassName).Add(
             rowGenerator.NewRow(i, property)
             );
     }
 }
Пример #2
0
 public void ShouldContainElements()
 {
     Assert.Less(0, rowGen.NewRow(0, property).childCount);
 }