Interface IUnityObjectBase
Inherited Members
Namespace: AssetRipper.Assets
Assembly: AssetRipper.Assets.dll
Syntax
public interface IUnityObjectBase : IUnityAssetBase, IEndianSpanReadable, IAssetWritable
Properties
| Improve this Doc View SourceAssetBundleName
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.
AssetInfo
The key information about the location of this asset.
Declaration
AssetInfo AssetInfo { get; }
Property Value
Type | Description |
---|---|
AssetRipper.Assets.Metadata.AssetInfo |
ClassID
The native class ID number of this object.
Declaration
int ClassID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ClassName
The native class name of this object.
Declaration
string ClassName { get; }
Property Value
Type | Description |
---|---|
System.String |
Collection
The AssetCollection this object belongs to.
Declaration
AssetCollection Collection { get; }
Property Value
Type | Description |
---|---|
AssetCollection |
MainAsset
The primary asset that this object is associated with, if any.
Declaration
IUnityObjectBase MainAsset { get; set; }
Property Value
Type | Description |
---|---|
IUnityObjectBase |
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.
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.
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.
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.
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.
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.
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.
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.
PathID
The
Declaration
long PathID { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceCopyValues(IUnityObjectBase)
Declaration
void CopyValues(IUnityObjectBase source)
Parameters
Type | Name | Description |
---|---|---|
IUnityObjectBase | 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:
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:
GetBestName()
Get the best name for this object.
Declaration
string GetBestName()
Returns
Type | Description |
---|---|
System.String | A nonempty string. |
Remarks
In order of preference:
- OverrideName
- OriginalName
- ClassName
OriginalName has secondary preference because file importers can create assets with a different name from the file.