Show / Hide Table of Contents

Interface IUnityObjectBase

Inherited Members
IUnityAssetBase.SerializedVersion
IUnityAssetBase.FlowMappedInYaml
IUnityAssetBase.IgnoreFieldInMetaFiles(String)
IUnityAssetBase.CopyValues(IUnityAssetBase, PPtrConverter)
IUnityAssetBase.Reset()
IUnityAssetBase.WalkEditor(AssetWalker)
IUnityAssetBase.WalkRelease(AssetWalker)
IUnityAssetBase.WalkStandard(AssetWalker)
IUnityAssetBase.FetchDependencies()
IUnityAssetBase.AddToEqualityComparer(IUnityAssetBase, AssetEqualityComparer)
AssetRipper.IO.Endian.IEndianSpanReadable.ReadEditor(AssetRipper.IO.Endian.EndianSpanReader)
AssetRipper.IO.Endian.IEndianSpanReadable.ReadRelease(AssetRipper.IO.Endian.EndianSpanReader)
IAssetWritable.WriteEditor(AssetWriter)
IAssetWritable.WriteRelease(AssetWriter)
Namespace: AssetRipper.Assets
Assembly: AssetRipper.Assets.dll
Syntax
public interface IUnityObjectBase : IUnityAssetBase, IEndianSpanReadable, IAssetWritable

Properties

| Improve this Doc View Source

AssetBundleName

The name of the asset bundle this object belongs to, if known.

Declaration
string AssetBundleName { get; set; }
Property Value
Type Description
System.String
Remarks

This will never be the empty string.

| Improve this Doc View Source

AssetInfo

The key information about the location of this asset.

Declaration
AssetInfo AssetInfo { get; }
Property Value
Type Description
AssetRipper.Assets.Metadata.AssetInfo
| Improve this Doc View Source

ClassID

The native class ID number of this object.

Declaration
int ClassID { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ClassName

The native class name of this object.

Declaration
string ClassName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Collection

The AssetCollection this object belongs to.

Declaration
AssetCollection Collection { get; }
Property Value
Type Description
AssetCollection
| Improve this Doc View Source

MainAsset

The primary asset that this object is associated with, if any.

Declaration
IUnityObjectBase MainAsset { get; set; }
Property Value
Type Description
IUnityObjectBase
| Improve this Doc View Source

OriginalDirectory

The original directory of this object, if known.

Declaration
string OriginalDirectory { get; set; }
Property Value
Type Description
System.String
Remarks

The path is relative to the project root and may use forward or back slashes. This will never be the empty string.

| Improve this Doc View Source

OriginalExtension

The original file extension of this object, if known.

Declaration
string OriginalExtension { get; set; }
Property Value
Type Description
System.String
Remarks

This will never be the empty string.

| Improve this Doc View Source

OriginalName

The original file name of this object, if known.

Declaration
string OriginalName { get; set; }
Property Value
Type Description
System.String
Remarks

This will never be the empty string.

| Improve this Doc View Source

OriginalPath

The original path of this object, if known.

Declaration
string OriginalPath { get; set; }
Property Value
Type Description
System.String
Remarks

The path is relative to the project root and may use forward or back slashes. This will never be the empty string.

| Improve this Doc View Source

OverrideDirectory

The directory of this object, if chosen.

Declaration
string OverrideDirectory { get; set; }
Property Value
Type Description
System.String
Remarks

The path is relative to the project root and may use forward or back slashes. This will never be the empty string.

| Improve this Doc View Source

OverrideExtension

The file extension of this object, if chosen.

Declaration
string OverrideExtension { get; set; }
Property Value
Type Description
System.String
Remarks

This will never be the empty string.

| Improve this Doc View Source

OverrideName

The file name of this object, if chosen.

Declaration
string OverrideName { get; set; }
Property Value
Type Description
System.String
Remarks

This will never be the empty string.

| Improve this Doc View Source

OverridePath

The path of this object, if chosen.

Declaration
string OverridePath { get; set; }
Property Value
Type Description
System.String
Remarks

The path is relative to the project root and may use forward or back slashes. This will never be the empty string.

| Improve this Doc View Source

PathID

The of this object within Collection.

Declaration
long PathID { get; }
Property Value
Type Description
System.Int64

Methods

| Improve this Doc View Source

CopyValues(IUnityObjectBase)

Declaration
void CopyValues(IUnityObjectBase source)
Parameters
Type Name Description
IUnityObjectBase source
| Improve this Doc View Source

GetBestDirectory()

Get the best directory for this object, relative to the project root.

Declaration
string GetBestDirectory()
Returns
Type Description
System.String

A non-empty string.

Remarks

In order of preference:

  1. OverrideDirectory
  2. OriginalDirectory
  3. ClassName
| Improve this Doc View Source

GetBestExtension()

Get the best extension for this object, if one exists.

Declaration
string GetBestExtension()
Returns
Type Description
System.String

A nonempty string or null.

Remarks

In order of preference:

  1. OverrideExtension
  2. OriginalExtension
| Improve this Doc View Source

GetBestName()

Get the best name for this object.

Declaration
string GetBestName()
Returns
Type Description
System.String

A nonempty string.

Remarks

In order of preference:

  1. OverrideName

  2. OriginalName
  3. ClassName
    OriginalName has secondary preference because file importers can create assets with a different name from the file.

Extension Methods

UnityAssetBaseExtensions.Read(IUnityAssetBase, ref EndianSpanReader, TransferInstructionFlags)
UnityObjectBaseExtensions.Read(IUnityObjectBase, ref EndianSpanReader)
AssetWritableExtensions.Write(IAssetWritable, AssetWriter)
AssetWritableExtensions.Write(IAssetWritable, AssetWriter, TransferInstructionFlags)
PathExtensions.GetPath(IUnityObjectBase)
UnityObjectBaseExtensions.GetOriginalName(IUnityObjectBase)
UnityObjectBaseExtensions.TryGetName(IUnityObjectBase)
UnityObjectBaseExtensions.GetLogString(IUnityObjectBase)
TraversalHelperMethods.WalkPrimitiveField<TPrimitive>(IUnityAssetBase, AssetWalker, TPrimitive, String)
TraversalHelperMethods.WalkPrimitiveListField<TPrimitive>(IUnityAssetBase, AssetWalker, AssetList<TPrimitive>, String)
TraversalHelperMethods.WalkPPtrField<TAsset>(IUnityAssetBase, AssetWalker, IPPtr<TAsset>, String)
TraversalHelperMethods.WalkPPtrField<TAsset>(IUnityAssetBase, AssetWalker, PPtr<TAsset>, String)
TraversalHelperMethods.WalkPPtrField<TAsset>(IUnityObjectBase, AssetWalker, TAsset, String)
TraversalHelperMethods.VisitPPtr<TAsset>(IUnityObjectBase, AssetWalker, TAsset)
TraversalHelperMethods.WalkPPtrListField<TAsset>(IUnityAssetBase, AssetWalker, IReadOnlyList<IPPtr<TAsset>>, String)
TraversalHelperMethods.WalkPPtrListField<TAsset>(IUnityAssetBase, AssetWalker, IReadOnlyList<PPtr<TAsset>>, String)
TraversalHelperMethods.WalkPPtrListField<TAsset>(IUnityObjectBase, AssetWalker, IReadOnlyList<TAsset>, String)
TraversalHelperMethods.WalkDictionaryPPtrField<TKey, TValue>(IUnityAssetBase, AssetWalker, IReadOnlyCollection<KeyValuePair<PPtr<TKey>, PPtr<TValue>>>, String)
TraversalHelperMethods.WalkDictionaryPPtrField<TKey, TValue>(IUnityObjectBase, AssetWalker, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, String)
TraversalHelperMethods.WalkStandardAssetField<TAsset>(IUnityAssetBase, AssetWalker, TAsset, String)
TraversalHelperMethods.WalkStandardAssetListField<TAsset>(IUnityAssetBase, AssetWalker, AssetList<TAsset>, String)
StrippedAssetExtensions.IsStripped(IUnityObjectBase)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾