Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,23 @@ dotnet test --filter "FullyQualifiedName~SerializedFile"

Test projects: UnityFileSystem.Tests, Analyzer.Tests, UnityDataTool.Tests, TestCommon (helper library)

### Code Style

#### Comments

* Write comments that explain "why". A few high level comments explaining the purpose of classes or methods is very helpful. Comments explaining tricky code are also helpful.
* Avoid comments that are redundant with the code. Do not comment before each line of code explaining what it does unless there is something that is not obvious going on.
* Do not use formal C# XML format when commenting methods, unless it is in an important interface class like UnityFileSystem.

#### Formatting

To repair white space or style issues, run:

```
dotnet format whitespace . --folder
dotnet format style
```

### Running the Tool
```bash
# Show all commands
Expand Down Expand Up @@ -123,6 +140,7 @@ UnityDataTool (CLI executable)
**Entry Points**:
- `UnityDataTool/Program.cs` - CLI using System.CommandLine
- `UnityDataTool/Commands/` - Command handlers (Analyze.cs, Dump.cs, Archive.cs, FindReferences.cs)
- `Documentation/` - Command documentation (command-analyze.md, command-dump.md, command-archive.md, command-find-refs.md)

**Core Libraries**:
- `UnityFileSystem/UnityFileSystem.cs` - Init(), MountArchive(), OpenSerializedFile()
Expand Down Expand Up @@ -207,7 +225,7 @@ The SQLite output uses views extensively to join base `objects` table with type-
- `asset_view` - Explicitly assigned assets only
- `shader_keyword_ratios` - Keyword variant analysis

See `Analyzer/README.md` and `Documentation/addressables-build-reports.md` for complete database schema documentation.
See `Documentation/analyzer.md` and `Documentation/addressables-build-reports.md` for complete database schema documentation.

### Common Issues

Expand Down
170 changes: 169 additions & 1 deletion Analyzer/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Analyzer/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<data name="AudioClip" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AudioClip.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="BuildReport" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\BuildReport.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Finalize" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Finalize.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
Expand Down Expand Up @@ -223,4 +226,10 @@
<data name="AddrBuildSchemaDataPairs" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddrBuildSchemaDataPairs.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="MonoScript" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\MonoScript.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="PackedAssets" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\PackedAssets.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
</root>
Loading