Show / Hide Table of Contents

Class SerializedFile

Serialized files contain binary serialized objects and optional run-time type information. They have file name extensions like .asset, .assets, .sharedAssets but may also have no extension at all

Inheritance
System.Object
FileBase
SerializedFile
Inherited Members
FileBase.FilePath
FileBase.Name
FileBase.NameFixed
FileBase.ReadContents()
FileBase.ReadContentsRecursively()
FileBase.ToByteArray()
FileBase.Dispose(Boolean)
FileBase.Dispose()
Namespace: AssetRipper.IO.Files.SerializedFiles
Assembly: AssetRipper.IO.Files.dll
Syntax
public sealed class SerializedFile : FileBase

Properties

| Improve this Doc View Source

Dependencies

Declaration
public ReadOnlySpan<FileIdentifier> Dependencies { get; }
Property Value
Type Description
ReadOnlySpan<FileIdentifier>
| Improve this Doc View Source

EndianType

Declaration
public EndianType EndianType { get; }
Property Value
Type Description
AssetRipper.IO.Endian.EndianType
| Improve this Doc View Source

Flags

Declaration
public TransferInstructionFlags Flags { get; }
Property Value
Type Description
TransferInstructionFlags
| Improve this Doc View Source

Generation

Declaration
public FormatVersion Generation { get; }
Property Value
Type Description
FormatVersion
| Improve this Doc View Source

HasTypeTree

Declaration
public bool HasTypeTree { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Objects

Declaration
public ReadOnlySpan<ObjectInfo> Objects { get; }
Property Value
Type Description
ReadOnlySpan<ObjectInfo>
| Improve this Doc View Source

Platform

Declaration
public BuildTarget Platform { get; }
Property Value
Type Description
AssetRipper.IO.Files.BuildTarget
| Improve this Doc View Source

RefTypes

Declaration
public ReadOnlySpan<SerializedTypeReference> RefTypes { get; }
Property Value
Type Description
ReadOnlySpan<SerializedTypeReference>
| Improve this Doc View Source

ScriptTypes

Declaration
public ReadOnlySpan<LocalSerializedObjectIdentifier> ScriptTypes { get; }
Property Value
Type Description
ReadOnlySpan<LocalSerializedObjectIdentifier>
| Improve this Doc View Source

Types

Declaration
public ReadOnlySpan<SerializedType> Types { get; }
Property Value
Type Description
ReadOnlySpan<SerializedType>
| Improve this Doc View Source

Version

Declaration
public UnityVersion Version { get; }
Property Value
Type Description
UnityVersion

Methods

| Improve this Doc View Source

FromBuilder(SerializedFileBuilder)

Declaration
public static SerializedFile FromBuilder(SerializedFileBuilder builder)
Parameters
Type Name Description
SerializedFileBuilder builder
Returns
Type Description
SerializedFile
| Improve this Doc View Source

FromFile(String)

Declaration
public static SerializedFile FromFile(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
SerializedFile
| Improve this Doc View Source

IsSerializedFile(Stream)

Declaration
public static bool IsSerializedFile(Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Read(SmartStream)

Declaration
public override void Read(SmartStream stream)
Parameters
Type Name Description
SmartStream stream
Overrides
FileBase.Read(SmartStream)
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
FileBase.ToString()
| Improve this Doc View Source

Write(Stream)

Declaration
public override void Write(Stream stream)
Parameters
Type Name Description
Stream stream
Overrides
FileBase.Write(Stream)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾