Class AssetTools
Inheritance
System.Object
AssetTools
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
public class AssetTools : Interface
Properties
|
Improve this Doc
View Source
Get UE4 Default Object for this Class
Declaration
public static AssetTools DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
Creates an asset with the specified name, path, and factory
@
Declaration
public UObject CreateAsset(string AssetName, string PackagePath, SubclassOf<UObject> AssetClass, Factory Factory, Name CallingContext)
Parameters
Returns
|
Improve this Doc
View Source
Opens an asset picker dialog and creates an asset with the specified name and path
Declaration
public UObject CreateAssetWithDialog(string AssetName, string PackagePath, SubclassOf<UObject> AssetClass, Factory Factory, Name CallingContext)
Parameters
Returns
|
Improve this Doc
View Source
Creates a unique package and asset name taking the form InBasePackageName+InSuffix
Declaration
public (string, string) CreateUniqueAssetName(string InBasePackageName, string InSuffix)
Parameters
| Type |
Name |
Description |
| System.String |
InBasePackageName |
|
| System.String |
InSuffix |
|
Returns
| Type |
Description |
| System.ValueTuple<System.String, System.String> |
|
|
Improve this Doc
View Source
Creates an asset with the specified name and path. Uses OriginalObject as the duplication source.
Declaration
public UObject DuplicateAsset(string AssetName, string PackagePath, UObject OriginalObject)
Parameters
| Type |
Name |
Description |
| System.String |
AssetName |
|
| System.String |
PackagePath |
|
| UObject |
OriginalObject |
|
Returns
|
Improve this Doc
View Source
Opens an asset picker dialog and creates an asset with the specified name and path. Uses OriginalObject as the duplication source.
Declaration
public UObject DuplicateAssetWithDialog(string AssetName, string PackagePath, UObject OriginalObject)
Parameters
| Type |
Name |
Description |
| System.String |
AssetName |
|
| System.String |
PackagePath |
|
| UObject |
OriginalObject |
|
Returns
|
Improve this Doc
View Source
Exports the specified objects to file.
Declaration
public void ExportAssets(byte AssetsToExport, string ExportPath)
Parameters
| Type |
Name |
Description |
| System.Byte |
AssetsToExport |
|
| System.String |
ExportPath |
|
|
Improve this Doc
View Source
Exports the specified objects to file.
Declaration
public void ExportAssetsWithDialog(byte AssetsToExport, bool bPromptForIndividualFilenames)
Parameters
| Type |
Name |
Description |
| System.Byte |
AssetsToExport |
|
| System.Boolean |
bPromptForIndividualFilenames |
|
|
Improve this Doc
View Source
Returns list of objects that soft reference the given soft object path. This will load assets into memory to verify
Declaration
public IReadOnlyCollection<UObject> FindSoftReferencesToObject(SoftObjectPath TargetObject)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<UObject> |
|
|
Improve this Doc
View Source
Imports assets using data specified completely up front.
Declaration
public IReadOnlyCollection<UObject> ImportAssetsAutomated(AutomatedAssetImportData ImportData)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<UObject> |
|
|
Improve this Doc
View Source
Opens a file open dialog to choose files to import to the destination path.
Declaration
public IReadOnlyCollection<UObject> ImportAssetsWithDialog(string DestinationPath)
Parameters
| Type |
Name |
Description |
| System.String |
DestinationPath |
|
Returns
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<UObject> |
|
|
Improve this Doc
View Source
Imports assets using tasks specified.
Declaration
public void ImportAssetTasks(byte ImportTasks)
Parameters
| Type |
Name |
Description |
| System.Byte |
ImportTasks |
|
|
Improve this Doc
View Source
Spawn an object of this class
Declaration
public static AssetTools New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public void OpenEditorForAssets(byte Assets)
Parameters
| Type |
Name |
Description |
| System.Byte |
Assets |
|
|
Improve this Doc
View Source
Renames assets using the specified names.
Declaration
public bool RenameAssets(byte AssetsAndNames)
Parameters
| Type |
Name |
Description |
| System.Byte |
AssetsAndNames |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Renames assets using the specified names.
Declaration
public void RenameAssetsWithDialog(byte AssetsAndNames, bool bAutoCheckout)
Parameters
| Type |
Name |
Description |
| System.Byte |
AssetsAndNames |
|
| System.Boolean |
bAutoCheckout |
|
Operators
|
Improve this Doc
View Source
Convert from IntPtr to UObject
Declaration
public static implicit operator AssetTools(IntPtr p)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
p |
|
Returns