Why does Visual Studio removes attributes when i compile a DLL?

52 Views Asked by At

I am compiling a DLL for Unity with Visual Studio Community 2019. I am using Odin Inspector in Unity, therefore i referenced Sirenix.OdinInspector.Attributes in VisualStudio/assemblies. After compiling the DLL and using or opening the DLL in Unity i can see that the (odin) attribute [HideReferenceObjectPicker] was removed from the compiled code.

Is there a way to keep this attribute in the compiled DLL?

0

There are 0 best solutions below