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&40;Blueprintable, BlueprintType&41;
class UCustomizableObjectSystem : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UCustomizableInstanceLODManagementBase > | CurrentInstanceLODManagement | ||
| TObjectPtr< UCustomizableInstanceLODManagementBase > | DefaultInstanceLODManagement | ||
| FEditorCompileSettings | EditorSettings | Copy of the Mutable Editor Settings tied to CO compilation. They are updated whenever changed. | |
| TArray< TObjectPtr< UTexture2D > > | ProtectedCachedTextures | Array where textures are added temporarily while the mutable thread may want to reused them for some instance under construction. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddPendingReleaseSkeletalMesh
(
USkeletalMesh* SkeletalMesh |
||
| 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 availabe at run-time. | |
| bool | CheckIfDiskOrMipUpdateOperationsPending
(
const UCustomizableObject& Object |
Checks if there are any outstading 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 mutabe 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. | |
| 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. | ||
| UDefaultImageProvider & | Initialize (if was not already) and get the default image provider. | ||
| FString | Find out the version of the plugin. | ||
| const FCustomizableObjectSystemPrivate * | GetPrivate () |
Give access to the internal object data. | |
| FCustomizableObjectSystemPrivate * | GetPrivate () |
Give access to the internal object data. | |
| FCustomizableObjectSystemPrivate * | |||
| const FCustomizableObjectSystemPrivate * | |||
| FStreamableManager & | |||
| int32 | Get the amount of memory in use 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 includingbuilt and not built. | ||
| void | InitSystem () |
||
| bool | If true, uncompiled Customizable Objects will be compiled synchronously. | ||
| bool | If true, uncompiled Customizable Objects will be compiled whenever an instance update is required. | ||
| bool | If compilation is disabled, Customizable Objects won't be compiled in the editor. | ||
| 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 | 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 | |||
| 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 | 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 | 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 |