ImplementationSelector
ImplementationSelector copied to clipboard
Filtering options with tags
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