Navigation
API > API/Plugins > API/Plugins/ClonerEffector > API/Plugins/ClonerEffector/Cloner > API/Plugins/ClonerEffector/Cloner/Extensions
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCEClonerExtensionBase
- UCEClonerMeshRendererExtension
References
| Module | ClonerEffector |
| Header | /Engine/Plugins/Experimental/ClonerEffector/Source/ClonerEffector/Public/Cloner/Extensions/CEClonerMeshRendererExtension.h |
| Include | #include "Cloner/Extensions/CEClonerMeshRendererExtension.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, Within=CEClonerComponent,
Meta=(Section="Rendering", Priority=4))
class UCEClonerMeshRendererExtension : public UCEClonerExtensionBase
Remarks
Extension dealing with mesh rendering options
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bMeshCastShadows | Whether clones cast shadow, disabling will result in better performance | |
| bool | bUseOverrideMaterial | Whether to override meshes materials with another material | |
| bool | bVisualizeEffectors | Override materials to show effectors applied on this cloner based on their color property | |
| TArray< TObjectPtr< UStaticMesh > > | DefaultMeshes | When nothing is attached to the cloner, these meshes are used as default | |
| ENiagaraMeshFacingMode | MeshFacingMode | Mode to indicate how clones facing is determined | |
| ECEClonerMeshRenderMode | MeshRenderMode | Indicates how we select the mesh to render on each clones | |
| TObjectPtr< UMaterialInterface > | OverrideMaterial | The override materials that will be set instead of meshes materials, bVisualizeEffectors must be disabled |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Get the number of material slots available | ||
| void | GetDefaultMeshes
(
TArray< UStaticMesh* >& OutMeshes |
||
| const TArray< TObjectPtr< UStaticMesh > > & | |||
| bool | |||
| ENiagaraMeshFacingMode | |||
| ECEClonerMeshRenderMode | |||
| UMaterialInterface * | |||
| TArray< FNiagaraMeshMaterialOverride > | Get the niagara materials override if enabled | ||
| bool | |||
| bool | |||
| void | |||
| void | SetDefaultMeshes
(
const TArray< TObjectPtr< UStaticMesh > >& InMeshes |
||
| void | SetDefaultMeshes
(
const TArray< UStaticMesh* >& InMeshes |
||
| void | SetMeshCastShadows
(
bool InbCastShadows |
||
| void | SetMeshFacingMode
(
ENiagaraMeshFacingMode InMode |
||
| void | SetMeshRenderMode
(
ECEClonerMeshRenderMode InMode |
||
| void | SetOverrideMaterial
(
UMaterialInterface* InMaterial |
||
| void | SetUseOverrideMaterial
(
bool bInOverride |
||
| void | SetVisualizeEffectors
(
bool bInVisualize |
Overridden from UCEClonerExtensionBase
| Type | Name | Description | |
|---|---|---|---|
| void | Called when the meshes are updated | ||
| void | OnExtensionParametersChanged
(
UCEClonerComponent* InComponent |
Called to reapply extension parameters |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& InPropertyChangedEvent |
Called when a property on this object has been modified externally |
Constants
| Name | Description |
|---|---|
| PropertyChangeDispatcher | Used for PECP |