NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Request] *Interface* attribute

Open ReGaSLZR opened this issue 6 years ago • 6 comments

Hi there, dev!! Thanks for this nifty tool. Loving it so much. ❤❤❤ Mabuhay to you.

Just wanted to ping ya a request if it's chill with ya. An attribute to accept Interface/s in the inspector, if it's possible. 😌 😂

ReGaSLZR avatar Aug 16 '19 18:08 ReGaSLZR

Will see what I can do :)

dbrizov avatar Aug 16 '19 19:08 dbrizov

Thanks! More power to youuuu! :)

ReGaSLZR avatar Aug 17 '19 10:08 ReGaSLZR

Hi,

@dbrizov Any news about this new attribute? It would be very very usefull! Thank you very much for your work. It's an awesome help!

yMiecie avatar Apr 28 '20 12:04 yMiecie

I know I'm late, but Unity now has an attribute SerializeReference that can serialize interfaces, is this what you need? However, the SerializeReference attrubute won't work if field is inherited from UnityEngine.Object.

IF-ACT avatar Apr 25 '21 15:04 IF-ACT

I know I'm late, but Unity now has an attribute SerializeReference that can serialize interfaces, is this what you need? However, the SerializeReference attrubute won't work if field is inherited from UnityEngine.Object.

I didn't know about that. Will see what I can do. Thanks :)

dbrizov avatar Apr 25 '21 18:04 dbrizov

There is also a request in the Unity Forum and an interesting project targeting the issue

https://forum.unity.com/threads/serializereference-genericserializedreferenceinspectorui.813366/

Maesla avatar Aug 02 '21 10:08 Maesla