|
|
virtual void | AutoSaveGeneratedAsset (UObject *Asset, UPackage *AssetPackage)=0 |
| | Autosave asset to persistent storage
|
| |
| virtual AActor * | GenerateStaticMeshActor (UWorld *TargetWorld, FTransform Transform, FString ObjectBaseName, FGeneratedStaticMeshAssetConfig &&AssetConfig)=0 |
| | Create a new UStaticMeshAsset for the provided mesh, then a new UStaticMeshComponent and AStaticMeshActor in the TargetWorld 更多...
|
| |
| virtual FString | GetActiveAssetFolderPath ()=0 |
| | Get a "currently-visible/selected" location to save assets in. 更多...
|
| |
|
virtual FString | GetWorldRelativeAssetRootPath (const UWorld *World)=0 |
| | Get a path to save assets in that is relative to the given UWorld.
|
| |
|
virtual void | InteractiveSaveGeneratedAsset (UObject *Asset, UPackage *AssetPackage)=0 |
| | Request saving of asset to persistent storage via something like an interactive popup dialog
|
| |
|
virtual FString | InteractiveSelectAssetPath (const FString &DefaultAssetName, const FText &DialogTitleMessage)=0 |
| | Allow the user to select a path and filename for an asset using a modal dialog
|
| |
| virtual UPackage * | MakeNewAssetPackage (const FString &FolderPath, const FString &AssetBaseName, FString &UniqueAssetNameOut)=0 |
| | Creates a new package for an asset 更多...
|
| |
|
virtual void | NotifyGeneratedAssetModified (UObject *Asset, UPackage *AssetPackage)=0 |
| | Notify that asset has been created and is dirty
|
| |
| virtual bool | SaveGeneratedTexture2D (UTexture2D *GeneratedTexture, FString ObjectBaseName, const UObject *RelativeToAsset) |
| | Save a generated UTexture2D as an Asset. 更多...
|
| |
Users of the Tools Framework need to provide an IToolsContextAssetAPI implementation that allows Packages and Assets to be created/saved.
Note that this is not strictly necessary, for example a trivial implementation could just store things in the Transient package and not do any saving.