protected override void VisitList <TContainer, TList, TElement>(Property <TContainer, TList> property, ref TContainer container, ref TList value) { if (!(property is IComponentProperty componentProperty) || componentProperty.Type != ComponentPropertyType.Buffer) { return; } var buffer = new InspectedBuffer <TList, TElement> { Value = value }; var element = new BufferElement <TList, TElement>(componentProperty, m_Context, ref buffer); m_ComponentRoot.Add(element); }
public BufferElement(IComponentProperty property, EntityInspectorContext context, ref InspectedBuffer <TList, TElement> value) : base(property, context) { m_Content = CreateContent(property, ref value); }