Show / Hide Table of Contents

Struct ObjectInfo

Contains information for a block of raw serialized object data.

Implements
ISerializedReadable
ISerializedWritable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AssetRipper.IO.Files.SerializedFiles.Parser
Assembly: AssetRipper.IO.Files.dll
Syntax
public struct ObjectInfo : ISerializedReadable, ISerializedWritable

Properties

| Improve this Doc View Source

ByteSize

Size of the object data.

Declaration
public int ByteSize { readonly get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ByteStart

Offset to the object data.
Add to AssetRipper.IO.Files.SerializedFiles.Parser.SerializedFileHeader.DataOffset to get the absolute offset within the serialized file.

Declaration
public long ByteStart { readonly get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

ClassID

Class ID of the object.

Declaration
public short ClassID { readonly get; set; }
Property Value
Type Description
System.Int16
| Improve this Doc View Source

FileID

ObjectID
Unique ID that identifies the object. Can be used as a key for a map.

Declaration
public long FileID { readonly get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

IsDestroyed

Declaration
public ushort IsDestroyed { readonly get; set; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

ObjectData

The data referenced by ByteStart and ByteSize.

Declaration
public byte[] ObjectData { readonly get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

ScriptTypeIndex

Declaration
public short ScriptTypeIndex { readonly get; set; }
Property Value
Type Description
System.Int16
| Improve this Doc View Source

SerializedTypeIndex

Type index in Types array

Declaration
public int SerializedTypeIndex { readonly get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Stripped

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

TypeID

Type ID of the object, which is mapped to
Equals to classID if the object is not MonoBehaviour"/>

Declaration
public int TypeID { readonly get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

GetSerializedType(ReadOnlySpan<SerializedType>)

Declaration
public readonly SerializedType GetSerializedType(ReadOnlySpan<SerializedType> types)
Parameters
Type Name Description
ReadOnlySpan<SerializedType> types
Returns
Type Description
SerializedType
| Improve this Doc View Source

HasClassID(FormatVersion)

Less than 5.5.0 / Format Version less than 16

Declaration
public static bool HasClassID(FormatVersion generation)
Parameters
Type Name Description
FormatVersion generation
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasIsDestroyed(FormatVersion)

Less than 5.0.0unk / Format Version less than 11

Declaration
public static bool HasIsDestroyed(FormatVersion generation)
Parameters
Type Name Description
FormatVersion generation
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasLargeFilesSupport(FormatVersion)

2020.1.0 and greater / Format Version at least 22

Declaration
public static bool HasLargeFilesSupport(FormatVersion generation)
Parameters
Type Name Description
FormatVersion generation
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasScriptID(FormatVersion)

5.0.0unk to 5.5.0unk exclusive / Format Version at least 11 but less than 17

Declaration
public static bool HasScriptID(FormatVersion generation)
Parameters
Type Name Description
FormatVersion generation
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasStripped(FormatVersion)

5.0.1 to 5.5.0unk exclusive / Format Version at least 15 but less than 17

Declaration
public static bool HasStripped(FormatVersion generation)
Parameters
Type Name Description
FormatVersion generation
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Initialize(ReadOnlySpan<SerializedType>)

Declaration
public void Initialize(ReadOnlySpan<SerializedType> types)
Parameters
Type Name Description
ReadOnlySpan<SerializedType> types
| Improve this Doc View Source

IsLongID(FormatVersion)

5.0.0unk and greater / Format Version at least 14

Declaration
public static bool IsLongID(FormatVersion generation)
Parameters
Type Name Description
FormatVersion generation
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Read(SerializedReader)

Declaration
public void Read(SerializedReader reader)
Parameters
Type Name Description
SerializedReader reader
| Improve this Doc View Source

ToString()

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

Write(SerializedWriter)

Declaration
public readonly void Write(SerializedWriter writer)
Parameters
Type Name Description
SerializedWriter writer

Implements

ISerializedReadable
ISerializedWritable
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾