Generate .md Markdown Documentation from Unity C# script assets.
Right-click a script asset then click "Generate Markdown Documentation".
- Only documents the class that shares the script file name.
- Namespace names and assembly names must match.
- Only documents public properties, methods and fields.
- XML Summary comment support is WIP.
- Tooltip attributes for properties.
- Parameter XML comments for methods.
Namespace myNamespace.space
{
/// <summary>
/// Test class summary.
/// </summary>
public class TestClass
{
[Tooltip("My tooltip text.")]
public int property = 0;
/// <summary>
/// Property2 summary.
/// </summary>
public int property2 = 1;
/// <summary>
/// Test method summary.
/// </summary>
/// <param name="param1">param1 summary</param>
/// <param name="param2">param2 summary</param>
/// <param name="param3">param3 summary</param>
public void Test(int param1, string param2, int param3 = 1)
{
}
}
# TestClass:
Test class summary.
### Namespace:
myNamespace.space
## Properties:
| Type | Name | Description | Default Value |
|:------------|:-----|:--------------------|:--------------|
| `int` | property | My tooltip text. | 0 |
| `int` | property2 | Property2 summary. | 1 |
## Methods:
| Name | Summary | Parameters | Returns |
|:-----|:-------------|:-----------|:--------|
| Test | Test method summary. | `int` param1 "param1 summary" , `string` param2 "param2 summary", `int` param3 "param3 summary" = 1 | `Void` |
Test class summary.
myNamespace.space
Type | Name | Description | Default Value |
---|---|---|---|
int |
property | My tooltip text. | 0 |
int |
property2 | Property2 summary. | 1 |
Name | Summary | Parameters | Returns |
---|---|---|---|
Test | Test method summary. | int param1 "param1 summary" , string param2 "param2 summary", int param3 "param3 summary" = 1 |
Void |
The name Kitbashery & all associated images Copyright © 2023 Kitbashery. All Rights Reserved.
"Unity", Unity logos, and other Unity trademarks aretrademarks or registered trademarks of Unity Technologies. Notice: This script is an internal tool of Kitbashery and not part of Kitbashery's product library and is provided AS IS. The name Unity is only used to elaborate on what technology stack this parser is for.