mackysoft / Unity-SerializeReferenceExtensions

Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.
https://qiita.com/makihiro_dev/items/26daeb3e5f176934bf0a
MIT License
725 stars 56 forks source link

[AddTypeMenu] with dynamic string value #64

Open Antoshidza opened 3 weeks ago

Antoshidza commented 3 weeks ago

Feature destription

I have IEffect and some wrapper class like CompositeEffect which contains IEffect and IProvider<int> to repeat effect execution certain times. In editor it looks like this: image And when it not expanded I see only Element 1 Composite Effect.

It would be perfect if I could see something like: Element 1 Composite Effect: Draw / Element 1 Draw (composite) / Element 1 Draw.

I think it could be down like Odin does in it's attributes, where we can specify method name to get string dynamically instead of specify const string value.