Navigation
API > API/Editor > API/Editor/UnrealEd
| Name | FAssetPrivatizeModel |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/AssetPrivatizeModel.h |
| Include Path | #include "AssetPrivatizeModel.h" |
Syntax
class FAssetPrivatizeModel
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAssetPrivatizeModel
(
const TArray< UObject* >& InObjectsToPrivatize, |
AssetPrivatizeModel.h |
Classes
| Name | Remarks |
|---|---|
| FOnStateChanged | Fires whenever the state changes |
Enums
Public
| Name | Remarks |
|---|---|
| EState |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsAnythingReferencedInMemoryByNonUndo | bool | Are any of the pending private assets being referenced in memory | AssetPrivatizeModel.h | |
| bIsAnythingReferencedInMemoryByUndo | bool | Are any of the pending private assets being referenced in the undo stack | AssetPrivatizeModel.h | |
| IllegalOnDiskReferences | TSet< FName > | On disk references to the current pending private objects that would be illegal if they are made private | AssetPrivatizeModel.h | |
| MaxTickSeconds | const double | The maximum timeslice per tick we are willing to scan for | AssetPrivatizeModel.h | |
| ObjectsPrivatized | int32 | The number of objects successfully marked private | AssetPrivatizeModel.h | |
| PendingPrivateAssets | TArray< TSharedPtr< FPendingPrivateAsset > > | The assets being marked private | AssetPrivatizeModel.h | |
| PendingPrivateIndex | int32 | A tick-to-tick state tracking variable so we know what pending private object we checked last | AssetPrivatizeModel.h | |
| State | EState | The internal progress/state of the privatize model which can take several frames to recalculate validity | AssetPrivatizeModel.h | |
| StateChanged | FOnStateChanged | Holds an event delegate that is executed when the state changes | AssetPrivatizeModel.h | |
| TargetAssetAccessSpecifier | EAssetAccessSpecifier | Asset access specifier to apply | AssetPrivatizeModel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Add an object to the list of pending private assets, this will invalidate the scanning state | AssetPrivatizeModel.h | ||
bool CanForcePrivatize() |
Returns true if we can't cleanly mark the pending objects as private (there are illegal references detected) | AssetPrivatizeModel.h | |
bool CanPrivatize() |
Returns true if it is valid to mark private the pending objects with no problems (there are no illegal references detected) | AssetPrivatizeModel.h | |
bool DoForcePrivatize() |
Marks the pending private objects as private and nulls out all detected illegal references | AssetPrivatizeModel.h | |
bool DoPrivatize() |
Performs the privatization action if possible | AssetPrivatizeModel.h | |
const TSet< FName > & GetIllegalAssetReferences() |
Gets the packages of the assets on disk that would illegally reference the pending private objects if they were made private; won't be accurate until the scanning process completes. | AssetPrivatizeModel.h | |
int32 GetObjectsPrivatizedCount() |
Gets the number of objects successfully made private | AssetPrivatizeModel.h | |
const TArray< TSharedPtr< FPendingPrivateAsset > > * GetPendingPrivateAssets() |
Returns the pending private assets | AssetPrivatizeModel.h | |
float GetProgress() |
Gets the 0..1 progress of the scan | AssetPrivatizeModel.h | |
FText GetProgressText() |
Gets the current text to display for the current progress of the scan | AssetPrivatizeModel.h | |
EState GetState() |
Returns the current state of the scanning process | AssetPrivatizeModel.h | |
EAssetAccessSpecifier GetTargetAssetAccessSpecifier() |
Get asset access specifier to apply | AssetPrivatizeModel.h | |
bool IsAnythingReferencedInMemoryByNonUndo() |
Are any of the pending assets being referenced in memory. | AssetPrivatizeModel.h | |
bool IsAnythingReferencedInMemoryByUndo() |
Are any of the pending assets being referenced in the undo stack. | AssetPrivatizeModel.h | |
FOnStateChanged & OnStateChanged() |
AssetPrivatizeModel.h | ||
void Tick
(
const float InDeltaTime |
Ticks the privatize model which does a timeslice of work before returning | AssetPrivatizeModel.h |