load_unity_file_from_memory

Function load_unity_file_from_memory 

Source
pub fn load_unity_file_from_memory(data: Vec<u8>) -> Result<UnityFile>
Expand description

Parse a Unity binary file from memory, returning a tagged UnityFile enum.

Notes:

  • The detection order is: bundle → serialized file → webfile.
  • WebFile detection can involve decompression, so it is attempted last.