Hey all,
i am struggeling to find out how the HelpURL attribute works.
I want to make my own class attributes that add those small buttons on the top right corner of a monobehaviour.

For Example: We work with confluence and I want to make it easy to add confluence pages without the full url or even Jira Task links. At some point I would love to make ingame help tools that open when you click on the button. For that I need to make my own version of HelpURL.
Is that possible to do without coding my own custom editor?
Thanks for your help.
you don’t need an editor script.
put the HelpURL attribute above your class declaration:
[HelpURL("https://my-website.help")]
public class MyClass : MonoBehaviour
{
// ...
}
No I want to make a custom attribute that has a similar functionality like HelpUL.
Ah, I see…
The HelpURLAttribute has an attribute by itself: UsedByNativeCodeAttribute.
I guess the attribute is handled by the native side of unity which probably also renders the headers of components in the inspector.
So, I guess it is not possible to extend this. But I am not sure.
Edit:
what you can extend is the context menu of that header (which appears when clicking the three dots):
Put this attribute on top of a static method (in editor assembly):
[MenuItem("CONTEXT/<MyComponentTypeName>/Do Something")]
(replace <MyComponentTypeName>
)
Edit #2:
You could also try to create a custom decorator drawer and draw it in a rect with negative y-value. The downside is that you probably cannot put the attribute above the class but you have to put it as first statement inside the class…