Version 3.3.1.0

MultiCollectionFilter<TResolver> class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
public class MultiCollectionFilter<TResolver> : IDisposable where TResolver : ICollectionResolver
Inheritance
  • System.Object
  • MultiCollectionFilter<TResolver>

Type Parameters

TResolver

Constructors

MultiCollectionFilter(InspectorProperty, TResolver)
public MultiCollectionFilter(InspectorProperty property, TResolver resolver)
Parameters
InspectorProperty property

TResolver resolver

Fields

Filter
public PropertySearchFilter Filter
IsUsed
public readonly bool IsUsed

Properties

IsFiltered
public bool IsFiltered { get; }
Item[Int32]
public InspectorProperty this[int index] { get; }
Parameters
System.Int32 index

Methods

Dispose()
public void Dispose()
Draw()
public void Draw()
Draw(Rect)
public void Draw(Rect rect)
Parameters
UnityEngine.Rect rect

GetCollectionIndex(Int32)
Retrieves the index of a filtered item; if the collection is not filtered, it just returns the passed index.
public int GetCollectionIndex(int index)
Parameters
System.Int32 index

The index to find.

Returns
System.Int32

The index in the collection of the filtered item, or the passed index if the collection is not IsFiltered.

Exceptions
MultiCollectionFilter.IndexNotFoundException<>

This is thrown if it's unable to find the index in the original collection, this indicates a discrepancy between the filtered collection and the original collection.

GetCount()
public int GetCount()
Returns
System.Int32

ScheduleUpdate()
public void ScheduleUpdate()
Update()
public void Update()