Commit e159732
committed
fix: add Unity type stubs for DocFX v2 compilation
DocFX v2 uses Roslyn to compile C# files. Without UnityEngine.dll,
types like MonoBehaviour, AudioClip, etc. fail to resolve, causing:
- 14 CS0246 compilation warnings
- Broken <see cref="AudioClip"/> → !:AudioClip (UnityXrefMaps can't link it)
- Missing inheritance chain in generated docs
UnityStubs/UnityEngine.cs provides minimal stubs for the types used in
Player.cs. Placed outside Assets/ so Unity ignores it. The SDK auto-includes
it in DocFxForUnity.csproj. filterConfig.yml excludes the UnityEngine
namespace so stubs never appear as published API pages.
Result: 0 compilation errors, full inheritance chain, correct xref links.
https://claude.ai/code/session_01HDAawqjLMudEktivP5ifXw1 parent 98f8e2c commit e159732
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments