Version: 2023.2

HelpURLAttribute

class in UnityEngine

切换到手册

描述

为类提供自定义文档 URL。

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.

using UnityEngine;
using UnityEditor;

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

变量

URL为该类指定的文档 URL。

构造函数

HelpURLAttribute使用文档 URL 初始化 HelpURL 属性。