Module file

Module file 

Source
Expand description

Unified Unity file model (UnityPy-aligned).

Unity distributes multiple binary container formats:

  • AssetBundle containers (UnityFS/UnityWeb/UnityRaw)
  • SerializedFile assets (.assets)
  • WebFile containers (UnityWebData*)

This module provides a single entry point to parse them into a tagged enum.

Enums§

UnityFile
UnityFileKind

Functions§

load_bundle_file_with_options
Load an AssetBundle from a filesystem path with explicit parser options.
load_serialized_file
Load a SerializedFile from a filesystem path.
load_unity_file
Parse a Unity binary file from a filesystem path.
load_unity_file_from_memory
Parse a Unity binary file from memory, returning a tagged UnityFile enum.
load_unity_file_from_shared_range
Parse a Unity binary file from a shared backing buffer + byte range.
looks_like_bundle_prefix
Return true if the provided byte prefix looks like an AssetBundle container signature.
looks_like_serialized_file_prefix
Return true if the provided byte prefix looks like a SerializedFile.
looks_like_uncompressed_webfile_prefix
Return true if the provided byte prefix looks like an uncompressed WebFile container signature.
looks_like_unityfs_bundle_prefix
Return true if the provided byte prefix matches the UnityFS bundle signature.
sniff_unity_file_kind_prefix
Classify a file by inspecting an in-memory prefix.