ImplementationSelector icon indicating copy to clipboard operation
ImplementationSelector copied to clipboard

Filtering options with tags

Open PereViader opened this issue 2 years ago • 0 comments

Add new functionality to filter possible serialized types

interface IInterface
{
}

[SelectImplementationTag("Potato")]
class A : IInterface
{
}

[SelectImplementationTag("Banana")]
class B : IInterface
{
}



public SomeClass : MonoBehaviour
{

    [SelectImplementation(typeof(IA), include: new [] { "Potato" })]

    public IInterface value = default;

}

should only display A as an option. If include was left null (default value) the default behaviour is to display them all

PereViader avatar Mar 23 '22 17:03 PereViader