Skip to content

Commit 651de27

Browse files
Small updates from testing
Regenerate type id registry from the raw ClassIDReference.md file - the original list had some errors
1 parent 1b898f5 commit 651de27

4 files changed

Lines changed: 195 additions & 36 deletions

File tree

Analyzer/SQLite/Parsers/SerializedFileParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool ShouldIgnoreFile(string file)
6464
private static readonly HashSet<string> IgnoredExtensions = new()
6565
{
6666
".txt", ".resS", ".resource", ".json", ".dll", ".pdb", ".exe", ".manifest", ".entities", ".entityheader",
67-
".ini", ".config", ".hash"
67+
".ini", ".config", ".hash", ".md"
6868
};
6969

7070
bool ProcessFile(string file, string rootDirectory)

Analyzer/SerializedObjects/BuildReport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static string GetBuildTypeString(int buildType)
120120
{
121121
1 => "Player",
122122
2 => "AssetBundle",
123-
3 => "Player, AssetBundle",
123+
3 => "ContentDirectory",
124124
_ => buildType.ToString()
125125
};
126126
}

Documentation/unity-content-format.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ However in cases where you want to understand what contributes to the size your
108108

109109
Often the source of content can be easily inferred, based on your own knowledge of your project, and the names of objects. For example the name of a Shader should be unique, and typically has a filename that closely matches the Shader name.
110110

111-
You can also use the [BuildReport](https://docs.unity3d.com/Documentation/ScriptReference/Build.Reporting.BuildReport.html) for Player and AssetBundle builds (excluding Addressables). The [Build Report Inspector](https://github.com/Unity-Technologies/BuildReportInspector) is a tool to aid in analyzing that data.
111+
You can include a Unity BuildReport file when running `UnityDataTools analyze`. This will import the PackedAsset information, tracking the source asset information for each object in the build output. See [Build Reports](./build-reports.md) for more information, including alternative ways to view the build report.
112112

113-
For AssetBundles built by [BuildPipeline.BuildAssetBundles()](https://docs.unity3d.com/ScriptReference/BuildPipeline.BuildAssetBundles.html), there is also source information available in the .manifest files for each bundle.
113+
`UnityDataTools analyze` can also import Addressables build layout files, which include source asset information. See [Addressable Build Reports](./addressables-build-reports.md).
114114

115-
Addressables builds do not produce a BuildReport or .manifest files, but it offers similar build information in the user interface.
115+
For AssetBundles built by [BuildPipeline.BuildAssetBundles()](https://docs.unity3d.com/ScriptReference/BuildPipeline.BuildAssetBundles.html) Unity creates a .manifest file for each AssetBundle that has source information. This is a text-base format.

UnityFileSystem/TypeIdRegistry.cs

Lines changed: 190 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ public static class TypeIdRegistry
1313
{
1414
{ 1, "GameObject" },
1515
{ 2, "Component" },
16+
{ 3, "LevelGameManager" },
1617
{ 4, "Transform" },
18+
{ 5, "TimeManager" },
19+
{ 6, "GlobalGameManager" },
1720
{ 8, "Behaviour" },
21+
{ 9, "GameManager" },
22+
{ 11, "AudioManager" },
23+
{ 13, "InputManager" },
1824
{ 18, "EditorExtension" },
1925
{ 19, "Physics2DSettings" },
2026
{ 20, "Camera" },
@@ -23,6 +29,8 @@ public static class TypeIdRegistry
2329
{ 25, "Renderer" },
2430
{ 27, "Texture" },
2531
{ 28, "Texture2D" },
32+
{ 29, "OcclusionCullingSettings" },
33+
{ 30, "GraphicsSettings" },
2634
{ 33, "MeshFilter" },
2735
{ 41, "OcclusionPortal" },
2836
{ 43, "Mesh" },
@@ -31,57 +39,92 @@ public static class TypeIdRegistry
3139
{ 48, "Shader" },
3240
{ 49, "TextAsset" },
3341
{ 50, "Rigidbody2D" },
42+
{ 53, "Collider2D" },
3443
{ 54, "Rigidbody" },
3544
{ 55, "PhysicsManager" },
3645
{ 56, "Collider" },
46+
{ 57, "Joint" },
3747
{ 58, "CircleCollider2D" },
38-
{ 59, "PolygonCollider2D" },
39-
{ 60, "BoxCollider2D" },
40-
{ 61, "PhysicsMaterial2D" },
41-
{ 62, "MeshCollider" },
42-
{ 64, "BoxCollider" },
43-
{ 65, "SphereCollider" },
48+
{ 59, "HingeJoint" },
49+
{ 60, "PolygonCollider2D" },
50+
{ 61, "BoxCollider2D" },
51+
{ 62, "PhysicsMaterial2D" },
52+
{ 64, "MeshCollider" },
53+
{ 65, "BoxCollider" },
54+
{ 66, "CompositeCollider2D" },
4455
{ 68, "EdgeCollider2D" },
56+
{ 70, "CapsuleCollider2D" },
4557
{ 72, "ComputeShader" },
4658
{ 74, "AnimationClip" },
59+
{ 75, "ConstantForce" },
4760
{ 78, "TagManager" },
4861
{ 81, "AudioListener" },
4962
{ 82, "AudioSource" },
5063
{ 83, "AudioClip" },
5164
{ 84, "RenderTexture" },
65+
{ 86, "CustomRenderTexture" },
5266
{ 89, "Cubemap" },
5367
{ 90, "Avatar" },
5468
{ 91, "AnimatorController" },
5569
{ 93, "RuntimeAnimatorController" },
70+
{ 94, "ShaderNameRegistry" },
5671
{ 95, "Animator" },
5772
{ 96, "TrailRenderer" },
73+
{ 98, "DelayedCallManager" },
5874
{ 102, "TextMesh" },
5975
{ 104, "RenderSettings" },
6076
{ 108, "Light" },
6177
{ 109, "ShaderInclude" },
78+
{ 110, "BaseAnimationTrack" },
79+
{ 111, "Animation" },
6280
{ 114, "MonoBehaviour" },
6381
{ 115, "MonoScript" },
82+
{ 116, "MonoManager" },
6483
{ 117, "Texture3D" },
84+
{ 118, "NewAnimationTrack" },
85+
{ 119, "Projector" },
6586
{ 120, "LineRenderer" },
66-
{ 121, "ReflectionProbe" },
87+
{ 121, "Flare" },
88+
{ 122, "Halo" },
89+
{ 123, "LensFlare" },
90+
{ 124, "FlareLayer" },
91+
{ 126, "NavMeshProjectSettings" },
6792
{ 128, "Font" },
6893
{ 129, "PlayerSettings" },
94+
{ 130, "NamedObject" },
6995
{ 134, "PhysicsMaterial" },
7096
{ 135, "SphereCollider" },
7197
{ 136, "CapsuleCollider" },
7298
{ 137, "SkinnedMeshRenderer" },
99+
{ 138, "FixedJoint" },
100+
{ 141, "BuildSettings" },
73101
{ 142, "AssetBundle" },
74102
{ 143, "CharacterController" },
75103
{ 144, "CharacterJoint" },
76104
{ 145, "SpringJoint" },
77105
{ 146, "WheelCollider" },
78106
{ 147, "ResourceManager" },
79107
{ 150, "PreloadData" },
108+
{ 152, "MovieTexture" },
80109
{ 153, "ConfigurableJoint" },
81110
{ 154, "TerrainCollider" },
82111
{ 156, "TerrainData" },
83112
{ 157, "LightmapSettings" },
84113
{ 158, "WebCamTexture" },
114+
{ 159, "EditorSettings" },
115+
{ 162, "EditorUserSettings" },
116+
{ 164, "AudioReverbFilter" },
117+
{ 165, "AudioHighPassFilter" },
118+
{ 166, "AudioChorusFilter" },
119+
{ 167, "AudioReverbZone" },
120+
{ 168, "AudioEchoFilter" },
121+
{ 169, "AudioLowPassFilter" },
122+
{ 170, "AudioDistortionFilter" },
123+
{ 171, "SparseTexture" },
124+
{ 180, "AudioBehaviour" },
125+
{ 181, "AudioFilter" },
126+
{ 182, "WindZone" },
127+
{ 183, "Cloth" },
85128
{ 184, "SubstanceArchive" },
86129
{ 185, "ProceduralMaterial" },
87130
{ 186, "ProceduralTexture" },
@@ -90,19 +133,19 @@ public static class TypeIdRegistry
90133
{ 191, "OffMeshLink" },
91134
{ 192, "OcclusionArea" },
92135
{ 193, "Tree" },
93-
{ 194, "NavMeshAgent" },
94-
{ 195, "NavMeshSettings" },
95-
{ 196, "NavMeshObstacle" },
136+
{ 195, "NavMeshAgent" },
137+
{ 196, "NavMeshSettings" },
96138
{ 198, "ParticleSystem" },
97139
{ 199, "ParticleSystemRenderer" },
98140
{ 200, "ShaderVariantCollection" },
99141
{ 205, "LODGroup" },
100142
{ 206, "BlendTree" },
101143
{ 207, "Motion" },
102-
{ 208, "NavMeshData" },
144+
{ 208, "NavMeshObstacle" },
103145
{ 210, "SortingGroup" },
104146
{ 212, "SpriteRenderer" },
105147
{ 213, "Sprite" },
148+
{ 214, "CachedSpriteAtlas" },
106149
{ 215, "ReflectionProbe" },
107150
{ 218, "Terrain" },
108151
{ 220, "LightProbeGroup" },
@@ -121,30 +164,146 @@ public static class TypeIdRegistry
121164
{ 233, "HingeJoint2D" },
122165
{ 234, "SliderJoint2D" },
123166
{ 235, "WheelJoint2D" },
124-
{ 238, "NavMeshObstacle" },
125-
{ 240, "OcclusionPortal" },
126-
{ 241, "AudioMixer" },
127-
{ 243, "AudioMixerController" },
128-
{ 244, "AudioMixerGroupController" },
129-
{ 245, "AudioMixerEffectController" },
130-
{ 258, "AudioMixerSnapshotController" },
131-
{ 259, "AudioMixerSnapshot" },
167+
{ 236, "ClusterInputManager" },
168+
{ 237, "BaseVideoTexture" },
169+
{ 238, "NavMeshData" },
170+
{ 240, "AudioMixer" },
171+
{ 241, "AudioMixerController" },
172+
{ 243, "AudioMixerGroupController" },
173+
{ 244, "AudioMixerEffectController" },
174+
{ 245, "AudioMixerSnapshotController" },
175+
{ 246, "PhysicsUpdateBehaviour2D" },
176+
{ 247, "ConstantForce2D" },
177+
{ 248, "Effector2D" },
178+
{ 249, "AreaEffector2D" },
179+
{ 250, "PointEffector2D" },
180+
{ 251, "PlatformEffector2D" },
181+
{ 252, "SurfaceEffector2D" },
182+
{ 253, "BuoyancyEffector2D" },
183+
{ 254, "RelativeJoint2D" },
184+
{ 255, "FixedJoint2D" },
185+
{ 256, "FrictionJoint2D" },
186+
{ 257, "TargetJoint2D" },
187+
{ 258, "LightProbes" },
188+
{ 259, "LightProbeProxyVolume" },
189+
{ 271, "SampleClip" },
190+
{ 272, "AudioMixerSnapshot" },
191+
{ 273, "AudioMixerGroup" },
132192
{ 290, "AssetBundleManifest" },
133-
{ 1020, "DefaultAsset" },
134-
{ 1028, "AnimatorStateTransition" },
135-
{ 1029, "AnimatorState" },
136-
{ 1030, "HumanTemplate" },
193+
{ 300, "RuntimeInitializeOnLoadManager" },
194+
{ 310, "UnityConnectSettings" },
195+
{ 319, "AvatarMask" },
196+
{ 320, "PlayableDirector" },
197+
{ 328, "VideoPlayer" },
198+
{ 329, "VideoClip" },
199+
{ 330, "ParticleSystemForceField" },
200+
{ 331, "SpriteMask" },
201+
{ 363, "OcclusionCullingData" },
202+
{ 900, "MarshallingTestObject" },
203+
{ 1001, "PrefabInstance" },
204+
{ 1002, "EditorExtensionImpl" },
205+
{ 1026, "HierarchyState" },
206+
{ 1028, "AssetMetaData" },
207+
{ 1029, "DefaultAsset" },
137208
{ 1032, "SceneAsset" },
138-
{ 1041, "HierarchyState" },
139-
{ 1045, "AssetMetaData" },
140-
{ 1101, "AnimatorTransition" },
141-
{ 1102, "AnimatorTransitionBase" },
142-
{ 1105, "AnimatorStateMachine" },
143-
{ 1107, "AnimatorLayer" },
144-
{ 1113, "Prefab" },
145-
{ 1120, "LightmapParameters" },
209+
{ 1045, "EditorBuildSettings" },
210+
{ 1048, "InspectorExpandedState" },
211+
{ 1049, "AnnotationManager" },
212+
{ 1051, "EditorUserBuildSettings" },
213+
{ 1101, "AnimatorStateTransition" },
214+
{ 1102, "AnimatorState" },
215+
{ 1105, "HumanTemplate" },
216+
{ 1107, "AnimatorStateMachine" },
217+
{ 1108, "PreviewAnimationClip" },
218+
{ 1109, "AnimatorTransition" },
219+
{ 1111, "AnimatorTransitionBase" },
220+
{ 1113, "LightmapParameters" },
221+
{ 1120, "LightingDataAsset" },
146222
{ 1125, "BuildReport" },
147223
{ 1126, "PackedAssets" },
224+
{ 100000, "int" },
225+
{ 100001, "bool" },
226+
{ 100002, "float" },
227+
{ 100003, "MonoObject" },
228+
{ 100004, "Collision" },
229+
{ 100005, "Vector3f" },
230+
{ 100006, "RootMotionData" },
231+
{ 100007, "Collision2D" },
232+
{ 100008, "AudioMixerLiveUpdateFloat" },
233+
{ 100009, "AudioMixerLiveUpdateBool" },
234+
{ 100010, "Polygon2D" },
235+
{ 100011, "void" },
236+
{ 19719996, "TilemapCollider2D" },
237+
{ 41386430, "ImportLog" },
238+
{ 55640938, "GraphicsStateCollection" },
239+
{ 73398921, "VFXRenderer" },
240+
{ 156049354, "Grid" },
241+
{ 156483287, "ScenesUsingAssets" },
242+
{ 171741748, "ArticulationBody" },
243+
{ 181963792, "Preset" },
244+
{ 285090594, "IConstraint" },
245+
{ 355983997, "AudioResource" },
246+
{ 369655926, "AssetImportInProgressProxy" },
247+
{ 382020655, "PluginBuildInfo" },
248+
{ 387306366, "MemorySettings" },
249+
{ 426301858, "EditorProjectAccess" },
250+
{ 483693784, "TilemapRenderer" },
251+
{ 612988286, "SpriteAtlasAsset" },
252+
{ 638013454, "SpriteAtlasDatabase" },
253+
{ 641289076, "AudioBuildInfo" },
254+
{ 644342135, "CachedSpriteAtlasRuntimeData" },
255+
{ 655991488, "MultiplayerManager" },
256+
{ 662584278, "AssemblyDefinitionReferenceAsset" },
257+
{ 668709126, "BuiltAssetBundleInfoSet" },
258+
{ 687078895, "SpriteAtlas" },
259+
{ 702665669, "DifferentMarshallingTestObject" },
260+
{ 825902497, "RayTracingShader" },
261+
{ 850595691, "LightingSettings" },
262+
{ 877146078, "PlatformModuleSetup" },
263+
{ 890905787, "VersionControlSettings" },
264+
{ 893571522, "CustomCollider2D" },
265+
{ 895512359, "AimConstraint" },
266+
{ 937362698, "VFXManager" },
267+
{ 947337230, "RoslynAnalyzerConfigAsset" },
268+
{ 954905827, "RuleSetFileAsset" },
269+
{ 994735392, "VisualEffectSubgraph" },
270+
{ 994735403, "VisualEffectSubgraphOperator" },
271+
{ 994735404, "VisualEffectSubgraphBlock" },
272+
{ 1001480554, "Prefab" },
273+
{ 1114811875, "ReferencesArtifactGenerator" },
274+
{ 1152215463, "AssemblyDefinitionAsset" },
275+
{ 1154873562, "SceneVisibilityState" },
276+
{ 1183024399, "LookAtConstraint" },
277+
{ 1233149941, "AudioContainerElement" },
278+
{ 1268269756, "GameObjectRecorder" },
279+
{ 1307931743, "AudioRandomContainer" },
280+
{ 1325145578, "LightingDataAssetParent" },
281+
{ 1386491679, "PresetManager" },
282+
{ 1403656975, "StreamingManager" },
283+
{ 1480428607, "LowerResBlitTexture" },
284+
{ 1521398425, "VideoBuildInfo" },
285+
{ 1542919678, "StreamingController" },
286+
{ 1557264870, "ShaderContainer" },
287+
{ 1597193336, "RoslynAdditionalFileAsset" },
288+
{ 1652712579, "MultiplayerRolesData" },
289+
{ 1660057539, "SceneRoots" },
290+
{ 1731078267, "BrokenPrefabAsset" },
291+
{ 1740304944, "VulkanDeviceFilterLists" },
292+
{ 1742807556, "GridLayout" },
293+
{ 1773428102, "ParentConstraint" },
294+
{ 1818360608, "PositionConstraint" },
295+
{ 1818360609, "RotationConstraint" },
296+
{ 1818360610, "ScaleConstraint" },
297+
{ 1839735485, "Tilemap" },
298+
{ 1896753125, "PackageManifest" },
299+
{ 1931382933, "UIRenderer" },
300+
{ 1953259897, "TerrainLayer" },
301+
{ 1971053207, "SpriteShapeRenderer" },
302+
{ 2058629509, "VisualEffectAsset" },
303+
{ 2058629511, "VisualEffectResource" },
304+
{ 2059678085, "VisualEffectObject" },
305+
{ 2083052967, "VisualEffect" },
306+
{ 2083778819, "LocalizationAsset" },
148307
};
149308

150309
/// <param name="typeId">The Unity TypeId</param>

0 commit comments

Comments
 (0)