You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each element of `typeTrees` and `serializedReferenceTypeTrees` contains per-type details including hash values, TypeTree blob size, inline/external flag, and (for SerializeReference types) the C# class identity.
261
+
Each element of `typeTrees` and `serializedReferenceTypeTrees` contains per-type details including hash values, TypeTree blob size, inline/external flag, and (for SerializeReference types) the C# class identity. Each element of `scriptTypes` contains the file and object ID of the backing MonoScript asset.
261
262
262
263
### Metadata Fields
263
264
@@ -272,6 +273,7 @@ The text and JSON outputs use different field names and representations for some
272
273
|**RefType Count**|`serializedReferenceTypeTreeCount`| Number of type entries for `[SerializeReference]` types recorded in the file. Always `0` for files with version < 20. |
273
274
|*(JSON only)*|`typeTrees`| Array of per-type detail objects for the regular type entries. `null` when parsing failed or was not attempted. See **Per-Type Entry Fields** below. |
274
275
|*(JSON only)*|`serializedReferenceTypeTrees`| Array of per-type detail objects for the `[SerializeReference]` type entries. Empty array for files with version < 20. See **Per-Type Entry Fields** below. |
276
+
|*(JSON only)*|`scriptTypes`| Array of MonoScript references for the C# types used in this file. Each entry's index corresponds to the `scriptTypeIndex` field of a type entry in `typeTrees`. See **Script Type Entry Fields** below. |
275
277
276
278
### Per-Type Entry Fields
277
279
@@ -292,6 +294,15 @@ Each element of `typeTrees` and `serializedReferenceTypeTrees` in the JSON outpu
292
294
|`assemblyName`| Assembly name; non-empty only for `[SerializeReference]` entries (version ≥ 21). |
293
295
|`typeDependencies`| Array of indices into `serializedReferenceTypeTrees` listing which `[SerializeReference]` types objects of this type may hold. Empty for `[SerializeReference]` entries or files with version < 21. |
294
296
297
+
### Script Type Entry Fields
298
+
299
+
Each element of `scriptTypes` in the JSON output contains:
300
+
301
+
| JSON Field | Description |
302
+
|------------|-------------|
303
+
|`fileID`| Index into the file's external references list identifying which SerializedFile contains the MonoScript asset. `0` = this file itself; `1`+ = 1-based index into the `externalrefs` list. |
304
+
|`pathID`| The object ID (`localIdentifierInFile`) of the MonoScript within the identified file. Corresponds to the `id` field shown by `sf objectlist` on that file. |
305
+
295
306
Notes:
296
307
297
308
* For SerializedFiles inside AssetBundles the Unity Version is frequently stripped ("0.0.0"). See [BuildAssetBundleOptions.AssetBundleStripUnityVersion](https://docs.unity3d.com/ScriptReference/BuildAssetBundleOptions.AssetBundleStripUnityVersion.html).
0 commit comments