Navigation
API > API/Plugins > API/Plugins/CustomizableObject > API/Plugins/CustomizableObject/MuCO
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCustomizableObjectSystem
References
| Module | CustomizableObject |
| Header | /Engine/Plugins/Experimental/Mutable/Source/CustomizableObject/Classes/MuCO/CustomizableObjectSystem.h |
| Include | #include "MuCO/CustomizableObjectSystem.h" |
Syntax
UCLASS (Blueprintable, BlueprintType)
class UCustomizableObjectSystem : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FEditorCompileSettings | EditorSettings | Copy of the Mutable Editor Settings tied to CO compilation. They are updated whenever changed. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddUncompiledCOWarning
(
const UCustomizableObject& InObject, |
Show a warning on-screen and via a notification (if in Editor) and log an error when a CustomizableObject is being used and it's not compiled. | |
| void | CacheImage
(
FName ImageId |
[Texture Parameters] Interface to actually cache Images in the Mutable system and make them available at run-time. | |
| bool | CheckIfDiskOrMipUpdateOperationsPending
(
const UCustomizableObject& Object |
Checks if there are any outstanding disk or mip update operations in flight for the parameter Customizable Object that may make it unsafe to compile at the moment. | |
| void | |||
| void | [Texture Parameters] Remove all images from the cache. | ||
| void | Unprotect the resources in the instances of this object of being garbage collector while an instance is being built or updated, so that they can be reused. | ||
| void | EditorSettingsChanged
(
const FEditorCompileSettings& InEditorSettings |
Called whenever the Mutable Editor Settings change, copying the new value of the current needed settings to the Customizable Object System. | |
| void | Enables the collection of internal Mutable performance data. It has a performance cost. | ||
| void | EndBenchmark () |
Writes the benchmark results. | |
| int32 | Return the average build/update time of an instance in ms. | ||
| UCustomizableObjectSystem * | GetInstance () |
Get the singleton object. It will be created if it doesn't exist yet. | |
| UCustomizableObjectSystem * | |||
| UCustomizableInstanceLODManagementBase * | |||
| uint64 | GetMaxChunkSizeForPlatform
(
const ITargetPlatform* InTargetPlatform |
Get the maximum size a chunk can have on a specific platform. If unspecified return MUTABLE_STREAMED_DATA_MAXCHUNKSIZE. | |
| FCustomizableObjectCompilerBase * | Creates a new Customizable Object Compiler (Only does real work in editor builds). The caller is responsible for freeing the new compiler. | ||
| int32 | Get the number of instances built and alive. | ||
| int32 | Get the number of instances waiting to be updated. | ||
| FString | Find out the version of the plugin. | ||
| UCustomizableObjectSystemPrivate * | GetPrivate () |
Give access to the internal object data. | |
| const UCustomizableObjectSystemPrivate * | GetPrivate () |
||
| int32 | Return the current MinLodQualityLevel for skeletal meshes. | ||
| int64 | Get the amount of GPU memory in use in bytes for textures generated by mutable. | ||
| TArray< FCustomizableObjectExternalTexture > | [Texture Parameters] Get a list of all the possible values for external texture parameters according to the various providers registered with RegisterImageProvider. | ||
| int32 | Get the total number of instances including built and not built. | ||
| int32 | Get Mutable's working memory limit (bytes). | ||
| void | InitSystem () |
||
| bool | IsActive () |
Returns the current status of Mutable. | |
| bool | If true, uncompiled Customizable Objects will be compiled synchronously. | ||
| bool | Return true if inside commandlets uncompiled Customizable Objects will be compiled whenever an instance update is required. | ||
| bool | If true, uncompiled Customizable Objects will be compiled whenever an instance update is required. | ||
| bool | IsCreated () |
Return true if the singleton has been created. It is different than GetInstance in that GetInstance will create it if it doesn't exist. | |
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | IsUpdateResultValid
(
const EUpdateResult UpdateResult |
Determines if the result of the instance update is valid or not. | |
| bool | IsUpdating
(
const UCustomizableObjectInstance* Instance |
Return true if the instance is being updated. | |
| bool | LockObject
(
const UCustomizableObject* |
Lock a CustomizableObjects, preventing the generation or update of any of its instances Will return true if successful, false if it fails to lock because an update is already underway This is usually only used in the editor | |
| void | LogShowData
(
bool bFullInfo, |
Show data about all UCustomizableObjectInstance existing elements. | |
| void | RecompileCustomizableObjectAsync
(
const FAssetData& InAssetData, |
||
| void | RecompileCustomizableObjects
(
const TArray< FAssetData >& InObjects |
||
| void | RegisterImageProvider
(
UCustomizableSystemImageProvider* Provider |
[Texture Parameters] Add a new image provider to the CustomizableObject System. | |
| void | SetAutoCompileCommandletEnabled
(
bool bValue |
Set if inside commandlets uncompiled Customizable Objects will be compiled whenever an instance update is required. | |
| void | |||
| void | SetInstanceLODManagement
(
UCustomizableInstanceLODManagementBase* NewInstanceLODManagement |
Pass a null ptr to reset to the default InstanceLODManagement. | |
| void | SetNewCompilerFunc
(
FCustomizableObjectCompilerBase*(*)() NewCompilerFunc |
||
| void | SetOnlyGenerateRequestedLODsEnabled
(
bool bIsEnabled |
||
| void | SetProgressiveMipStreamingEnabled
(
bool bIsEnabled |
||
| void | SetReleaseMutableTexturesImmediately
(
bool bReleaseTextures |
If set to true, Mutable will release Mutable-generated textures immediately when they are no longer used without waiting for GC IMPORTANT!!! Do NOT keep references to any Mutable generated textures or skeletal meshes if this is enabled, they are owned by Mutable and will be destroyed without notice | |
| void | SetReplaceDiscardedWithReferenceMeshEnabled
(
bool bIsEnabled |
||
| void | SetWorkingMemory
(
int32 Bytes |
Set Mutable's working memory limit (bytes). | |
| void | UnCacheImage
(
FName ImageId |
[Texture Parameters] Remove an image from the cache. | |
| void | UnlockObject
(
const UCustomizableObject* |
||
| void | UnregisterImageProvider
(
UCustomizableSystemImageProvider* Provider |
[Texture Parameters] Remove a previously registered provider. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| FString | GetDesc () |
Return a one line description of an object for viewing in the thumbnail view of the generic browser |