We’ve created a Custom Inspector panel for a Unity component we are releasing, and I’d love to be able to link directly to our documentation when a user clicks on the documentation icon in the inspector panel:
Right now, when I click that icon, I’m taken to the generic [MonoBehavior](file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/MonoBehaviour.html) docs.
Does anyone know how I can change where this icon links to?
Unity’s Editor classes uses the Help class to launch the documentation. Basically if there is help available for the target of your editor, then it will be shown. Unfortunately the documentation for HasHelpForObject and ShowHelpForObject doesn’t suggest that it’s possible to add your own objects or object types.
You could add your own help button that uses Help.BrowseURL to launch the documentation.
And you could probably use GUI.Button with a rectangle that puts your button on top of the standard one. Here is the code used for the standard button: