Created myself a custom attribute in C# to help with some editor tools I’m building. This particular attribute always requires Unity’s [SerializeField] attribute and I was wondering if anyone has found a way to directly include an attribute to a custom attribute, so I can just use the single property attribute instead of requiring both the custom attribute and the existing one.
Yes you can decorate attributes with more attributes and read those attributes. Odin Inspector does this for a few things.
However serialisation happens before inspectors are drawn, so serialisation attributes can’t be used in this manner as it’s too late for them to be used at that point.