Documentation

Unity Engine

Download Unity

Unity Engine

HelpURLAttribute

Provide a custom documentation URL for a class or struct.
Read time 3 minutesLast updated 11 days ago

Definition

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false)]public class HelpURLAttribute : Attribute

Remarks

This attribute targets classes and structs. The Inspector shows a help button that opens the URL for the inspected type.
The provided URL is expected to be an absolute path. If no file is found at the URL, the path is resolved relative to the Unity documentation, which can be either the manual or scripting reference.

Examples

using UnityEngine;using UnityEditor;[HelpURL("http://example.com/docs/MyComponent.html")]public class MyComponent{}

Constructors

Constructor

Description

HelpURLAttribute(System.String)Initialize the HelpURL attribute with a documentation url.

Properties

Property

Description

URLThe documentation URL specified for this type.

Inheritance

Inherited Members