Class UnityObjectBase
The artificial base class for all generated Unity classes which inherit from Object.
Implements
Inherited Members
Namespace: AssetRipper.Assets
Assembly: AssetRipper.Assets.dll
Syntax
public abstract class UnityObjectBase : UnityAssetBase, IUnityObjectBase, IUnityAssetBase, IEndianSpanReadable, IAssetWritable
Constructors
| Improve this Doc View SourceUnityObjectBase(AssetInfo)
Declaration
protected UnityObjectBase(AssetInfo assetInfo)
Parameters
Type | Name | Description |
---|---|---|
AssetRipper.Assets.Metadata.AssetInfo | assetInfo |
Properties
| Improve this Doc View SourceAssetBundleName
The name of the asset bundle containing this asset.
Declaration
public string AssetBundleName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AssetInfo
Declaration
public AssetInfo AssetInfo { get; }
Property Value
Type | Description |
---|---|
AssetRipper.Assets.Metadata.AssetInfo |
ClassID
Declaration
public int ClassID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ClassName
Declaration
public virtual string ClassName { get; }
Property Value
Type | Description |
---|---|
System.String |
Collection
Declaration
public AssetCollection Collection { get; }
Property Value
Type | Description |
---|---|
AssetCollection |
MainAsset
Declaration
public IUnityObjectBase MainAsset { get; set; }
Property Value
Type | Description |
---|---|
IUnityObjectBase |
OriginalDirectory
The original directory of this object, if known.
Declaration
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
Declaration
public long PathID { get; }
Property Value
Type | Description |
---|---|
System.Int64 |