- Home /
Question by
viesc123 · Jul 10, 2020 at 09:27 AM ·
c#monobehaviourmanual
Create a manual link for a custom C# script component
Is there a way to set the manual-page link that is opened, when you click the manual-button in the inspector, for custom C# components? For my custom MonoBehaviours it currently tries to open a page based on the component's name, in the Unity docs, that obviously doesn't exist, like: https://docs.unity3d.com/Manual/script-MyComponent.html. I would like to just provide another website URL, since we actually have an online project documentation.
Comment
Best Answer
Answer by Z_Y_X · Jul 10, 2020 at 09:38 AM
You need to use HelpURL Attribute:
using UnityEngine;
[HelpURL("mysite.com/documentation")]
public class MyClass: MonoBehaviour
{
...
}
Documentation: https://docs.unity3d.com/ScriptReference/HelpURLAttribute.html