Navigation
API > API/Plugins > API/Plugins/CustomizableObject > API/Plugins/CustomizableObject/MuCO
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCustomizableObjectInstance
References
| Module | CustomizableObject |
| Header | /Engine/Plugins/Experimental/Mutable/Source/CustomizableObject/Classes/MuCO/CustomizableObjectInstance.h |
| Include | #include "MuCO/CustomizableObjectInstance.h" |
Syntax
UCLASS (Blueprintable, BlueprintType, HideCategories=(CustomizableObjectInstance))
class UCustomizableObjectInstance : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< UTexture2D > > | TextureParameterDeclarations | Textures which can used as values in Texture Parameters. | |
| FObjectInstanceUpdatedDelegate | UpdatedDelegate | Broadcast when the Customizable Object Instance is updated. | |
| FObjectInstanceUpdatedNativeDelegate | UpdatedNativeDelegate | Broadcast when the Customizable Object Instance is updated. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddValueToFloatRange
(
const FString& ParamName |
Increases the range of values of the float with ParamName, returns the index of the new float value, -1 otherwise. | |
| int32 | AddValueToIntRange
(
const FString& ParamName |
Increases the range of values of the integer with ParamName and returns the index of the new integer value, -1 otherwise. | |
| int32 | AddValueToProjectorRange
(
const FString& ParamName |
Increases the range of values of the projector with ParamName, returns the index of the new projector value, -1 otherwise. | |
| void | AnimInstanceFixup
(
UAnimInstance* AnimInstance |
Fix the given UAnimInstance instance. | |
| bool | AnimInstanceNeedsFixup
(
TSubclassOf< UAnimInstance > AnimInstance |
Check if the given UAnimInstance class requires to be fixed up. | |
| bool | Return true if the instance is not locked and if it's compiled. | ||
| UCustomizableObjectInstance * | Clone () |
Clones the instance creating a new identical transient instance. | |
| UCustomizableObjectInstance * | CloneStatic
(
UObject* Outer |
Clones the instance creating a new identical static instance with the given Outer. | |
| void | CopyParametersFromInstance
(
UCustomizableObjectInstance* Instance |
Copy parameters from the given Instance. | |
| bool | CreateMultiLayerProjector
(
const FName& ProjectorParamName |
Multilayer Projectors | |
| void | Immediately destroy the Mutable Core Live Update Instance attached to this (if exists). | ||
| int32 | FindBoolParameterNameIndex
(
const FString& ParamName |
Finds in BoolParameters a parameter with name ParamName, returns the index if found, -1 otherwise. | |
| int32 | FindFloatParameterNameIndex
(
const FString& ParamName |
Finds in FloatParameters a parameter with name ParamName, returns the index if found, -1 otherwise. | |
| int32 | FindIntParameterNameIndex
(
const FString& ParamName |
Finds in IntParameters a parameter with name ParamName, returns the index if found, -1 otherwise. | |
| int32 | FindProjectorParameterNameIndex
(
const FString& ParamName |
Finds in ProjectorParameters a parameter with name ParamName, returns the index if found, -1 otherwise. | |
| int32 | FindVectorParameterNameIndex
(
const FString& ParamName |
Finds in VectorParameters a parameter with name ParamName, returns the index if found, -1 otherwise. | |
| void | ForEachAnimInstance
(
int32 ComponentIndex, |
||
| void | ForEachAnimInstance
(
int32 ComponentIndex, |
Execute a delegate for each animation instance involved in this customizable object instance. | |
| const FGameplayTagContainer & | Return the list of tags for this instance. | ||
| TSubclassOf< UAnimInstance > | Returns the animation BP for the parameter component and slot, gathered from all the meshes that compose this instance. | ||
| const TArray< FCustomizableObjectBoolParameterValue > & | |||
| TArray< FCustomizableObjectBoolParameterValue > & | Get the array of parameters in the instance that are of type "bool". | ||
| bool | GetBoolParameterSelectedOption
(
const FString& BoolParamName |
Sets the bool value "BoolValue" of a bool parameter with name "BoolParamName". | |
| bool | Return true if the parameter relevancy will be updated when this instance is generated. | ||
| FLinearColor | GetColorParameterSelectedOption
(
const FString& ColorParamName |
Gets the value of a color parameter with name "ColorParamName". | |
| int32 | Return the min LOD this Instance is using. | ||
| FString | Return the name of the current CustomizableObject state this is instance is set to. | ||
| UCustomizableObject * | Get the CustomizableObject that this is an instance of. | ||
| const FCustomizableObjectInstanceDescriptor & | |||
| const TArray< FCustomizableObjectFloatParameterValue > & | |||
| TArray< FCustomizableObjectFloatParameterValue > & | Get the array of parameters in the instance that are of type "float". | ||
| float | GetFloatParameterSelectedOption
(
const FString& FloatParamName, |
Gets the value of a float parameter with name "FloatParamName". | |
| int32 | GetFloatValueRange
(
const FString& ParamName |
For multidimensional parameters, return the number of dimensions that the given float parameter supports. | |
| const TArray< FCustomizableObjectIntParameterValue > & | |||
| TArray< FCustomizableObjectIntParameterValue > & | Get the array of parameters in the instance that are of type "integer". | ||
| const FString & | GetIntParameterSelectedOption
(
const FString& ParamName, |
Return the name of the option currently set in the given parameter. | |
| int32 | GetIntValueRange
(
const FString& ParamName |
For multidimensional parameters, return the number of dimensions that the given int parameter supports. | |
| bool | |||
| bool | |||
| TSet< UAssetUserData * > | GetMergedAssetUserData
(
int32 ComponentIndex |
Returns the AssetUserData that was gathered from all the constituent mesh parts during the last update. | |
| int32 | Return the min LOD that will be used in the next Instance update. | ||
| float | |||
| int32 | Return the number of components generated in this instance. | ||
| int32 | |||
| const TArray< TObjectPtr< UMaterialInterface > > * | GetOverrideMaterials
(
int32 ComponentIndex |
||
| UCustomizableInstancePrivate * | GetPrivate () |
||
| FCustomizableObjectProjector | GetProjector
(
const FString& ParamName, |
Get the current projector for the parameter with the given name. | |
| float | GetProjectorAngle
(
const FString& ParamName, |
Get the current cylindrical projector angle for the parameter with the given name. | |
| FVector | GetProjectorDirection
(
const FString& ParamName, |
Get the current projector direction vector for the parameter with the given name. | |
| TArray< FCustomizableObjectProjectorParameterValue > & | Get the array of parameters in the instance that are of type "projector". | ||
| const TArray< FCustomizableObjectProjectorParameterValue > & | |||
| ECustomizableObjectProjectorType | GetProjectorParameterType
(
const FString& ParamName, |
Get the current projector type for the parameter with the given name. | |
| FVector | GetProjectorPosition
(
const FString& ParamName, |
Get the current projector position for the parameter with the given name. | |
| FVector | GetProjectorScale
(
const FString& ParamName, |
Get the current projector scale for the parameter with the given name. | |
| FVector | GetProjectorUp
(
const FString& ParamName, |
Get the current projector up vector for the parameter with the given name. | |
| void | GetProjectorValue
(
const FString& ProjectorParamName, |
Get the projector values of a projector parameter with index "ProjectorParamIndex". | |
| void | GetProjectorValueF
(
const FString& ProjectorParamName, |
||
| int32 | GetProjectorValueRange
(
const FString& ParamName |
For multidimensional parameters, return the number of dimensions that the given projector parameter supports. | |
| const TArray< uint16 > & | |||
| USkeletalMesh * | GetSkeletalMesh
(
int32 ComponentIndex |
Get the skeletal mesh generated for this instance. | |
| TArray< FCustomizableObjectTextureParameterValue > & | Get the array of parameters in the instance that are of type "texture". | ||
| const TArray< FCustomizableObjectTextureParameterValue > & | |||
| FName | GetTextureParameterSelectedOption
(
const FString& TextureParamName, |
Gets the value of a texture parameter with name "TextureParamName". | |
| int32 | GetTextureValueRange
(
const FString& ParamName |
For multidimensional parameters, return the number of dimensions that the given texture parameter supports. | |
| const TArray< FCustomizableObjectVectorParameterValue > & | |||
| TArray< FCustomizableObjectVectorParameterValue > & | Get the array of parameters in the instance that are of type "vector". | ||
| bool | Return true if the instance has any parameters. | ||
| bool | Return true if a skeletal mesh has been generated for any component of this instance. | ||
| bool | IsParameterRelevant
(
const FString& ParamName |
Return true if the given parameter has any effect in the current object state, and considering the current values of the other parameters. | |
| bool | IsParameterRelevant
(
int32 ParameterIndex |
Return true if changing the parameter would affect the Instance given its current generation. | |
| void | LoadDescriptor
(
FArchive& CustomizableObjectDescriptor |
See FCustomizableObjectInstanceDescriptor::LoadDescriptor. | |
| void | MultilayerProjectorCreateLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::CreateLayer. | |
| void | MultilayerProjectorCreateVirtualLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::VirtualLayer. | |
| FMultilayerProjectorVirtualLayer | MultilayerProjectorFindOrCreateVirtualLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::FindOrCreateVirtualLayer. | |
| FMultilayerProjectorLayer | MultilayerProjectorGetLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::GetLayer. | |
| FMultilayerProjectorVirtualLayer | MultilayerProjectorGetVirtualLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::GetVirtualLayer. | |
| TArray< FName > | MultilayerProjectorGetVirtualLayers
(
const FName& ProjectorParamName |
See FMultilayerProjector::GetVirtualLayers. | |
| int32 | MultilayerProjectorNumLayers
(
const FName& ProjectorParamName |
See FMultilayerProjector::NumLayers. | |
| void | MultilayerProjectorRemoveLayerAt
(
const FName& ProjectorParamName, |
See FMultilayerProjector::RemoveLayerAt. | |
| void | MultilayerProjectorRemoveVirtualLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::RemoveVirtualLayer. | |
| void | MultilayerProjectorUpdateLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::UpdateLayer. | |
| void | MultilayerProjectorUpdateVirtualLayer
(
const FName& ProjectorParamName, |
See FMultilayerProjector::UpdateVirtualLayer. | |
| void | RemoveMultilayerProjector
(
const FName& ProjectorParamName |
Given Multilayer Projector name, remove a Multilayer Projector Helper. | |
| int32 | RemoveValueFromFloatRange
(
const FString& ParamName, |
Remove the RangeIndex element of the float range of values from the parameter ParamName, returns the index of the last valid float, -1 if no values left. | |
| int32 | RemoveValueFromFloatRange
(
const FString& ParamName |
Remove the last of the float range of values from the parameter ParamName, returns the index of the last valid float, -1 if no values left. | |
| int32 | RemoveValueFromIntRange
(
const FString& ParamName |
Remove the last of the integer range of values from the parameter ParamName, returns the index of the last valid integer, -1 if no values left. | |
| int32 | RemoveValueFromIntRange
(
const FString& ParamName, |
Remove the RangeIndex element of the integer range of values from the parameter ParamName, returns the index of the last valid integer, -1 if no values left. | |
| int32 | RemoveValueFromProjectorRange
(
const FString& ParamName |
Remove the last of the projector range of values from the parameter ParamName, returns the index of the last valid projector, -1 if no values left. | |
| int32 | RemoveValueFromProjectorRange
(
const FString& ParamName, |
Remove the RangeIndex element of the projector range of values from the parameter ParamName, returns the index of the last valid projector, -1 if no values left. | |
| void | SaveDescriptor
(
FArchive& CustomizableObjectDescriptor, |
See FCustomizableObjectInstanceDescriptor::SaveDescriptor. | |
| void | SetBoolParameterSelectedOption
(
const FString& BoolParamName, |
Sets the bool value "BoolValue" of a bool parameter with name "BoolParamName". | |
| void | SetBuildParameterRelevancy
(
bool Value |
Set the flag that controls if parameter relevancy will be updated when this instance is generated. | |
| void | SetColorParameterSelectedOption
(
const FString& ColorParamName, |
Sets the color value "ColorValue" of a color parameter with index "ColorParamIndex". | |
| void | SetCurrentState
(
const FString& StateName |
Set the CustomizableObject state that this instance will be generated into. | |
| void | SetDescriptor
(
const FCustomizableObjectInstanceDescriptor& InDescriptor |
||
| void | SetFloatParameterSelectedOption
(
const FString& FloatParamName, |
Sets the float value "FloatValue" of a float parameter with index "FloatParamIndex". | |
| void | SetForceGenerateResidentMips
(
bool bForceGenerateResidentMips |
If enabled, low-priority textures will generate resident mipmaps too. | |
| void | SetIntParameterSelectedOption
(
int32 IntParamIndex, |
Set the currently selected option value for the given parameter, by parameter index and option name. | |
| void | SetIntParameterSelectedOption
(
const FString& ParamName, |
Set the currently selected option value for the given parameter, by parameter name and option name. | |
| void | SetIsBeingUsedByComponentInPlay
(
bool bIsUsedByComponent |
The following methods should only be used in an LOD management class. | |
| void | SetIsDiscardedBecauseOfTooManyInstances
(
bool bIsDiscarded |
||
| void | SetIsPlayerOrNearIt
(
bool NewValue |
||
| void | SetMinSquareDistToPlayer
(
float NewValue |
||
| void | SetObject
(
UCustomizableObject* InObject |
Set the CustomizableObject this instance will be generated from. | |
| void | SetProjectorAngle
(
const FString& ProjectorParamName, |
Set only the cylindrical projector angle keeping the rest of values. | |
| void | SetProjectorDirection
(
const FString& ProjectorParamName, |
Set only the projector direction vector keeping the rest of values. | |
| void | SetProjectorPosition
(
const FString& ProjectorParamName, |
Set only the projector position keeping the rest of values. | |
| void | SetProjectorScale
(
const FString& ProjectorParamName, |
Set only the projector scale keeping the rest of values. | |
| void | SetProjectorUp
(
const FString& ProjectorParamName, |
Set only the projector up vector keeping the rest of values. | |
| void | Sets the projector values of a projector parameter with index "ProjectorParamIndex". | ||
| void | Set random values to the parameters. | ||
| void | SetRandomValuesFromStream
(
const FRandomStream& InStream |
Set random values to the parameters using a stream. | |
| void | SetReplacePhysicsAssets
(
bool bReplaceEnabled |
Enable physics asset replacement so that generated skeletal meshes have the merged physics assets of their skeletal mesh parts and reference mesh. | |
| void | SetRequestedLODs
(
int32 InMinLOD, |
Sets an array of LODs to generate per component. | |
| void | SetReuseInstanceTextures
(
bool bTextureReuseEnabled |
Enables the reuse of all possible textures when the instance is updated without any changes in geometry or state (the first update after creation doesn't reuse any) It will only work if the textures aren't compressed, so set the instance to a Mutable state with texture compression disabled WARNING! If texture reuse is enabled, do NOT keep external references to the textures of the instance. | |
| void | SetTextureParameterSelectedOption
(
const FString& TextureParamName, |
Sets the texture value "TextureValue" of a texture parameter with index "TextureParamIndex". | |
| void | SetVectorParameterSelectedOption
(
const FString& VectorParamName, |
Sets the vector value "VectorValue" of a bool parameter with index "VectorParamIndex". | |
| void | UpdateSkeletalMeshAsync
(
bool bIgnoreCloseDist, |
Generate the instance with the current parameters and update all the components Skeletal Meshes asynchronously. | |
| void | UpdateSkeletalMeshAsyncResult
(
FInstanceUpdateDelegate Callback, |
Generate the instance with the current parameters and update all the components Skeletal Meshes asynchronously. | |
| void | UpdateSkeletalMeshAsyncResult
(
FInstanceUpdateNativeDelegate Callback, |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| FString | GetDesc () |
Return a one line description of an object for viewing in the thumbnail view of the generic browser | |
| bool | IsEditorOnly () |
Called during saving to determine if the object is forced to be editor only or not | |
| bool | Called to check if the object is ready for FinishDestroy. | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |