Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor > API/Plugins/MeshPartitionEditor/ICodeReusableModifier
Description
Used by code to temporarily deactive the modifier.
For example, a PCG spawning node would use this function to temporarily deactivate the modifier at the start of graph execution so that it can sample an unmodified megamesh, but still have the component around in case it is able to reuse it later.
Note that higher-level MegaMesh systems won't know about this deactivation, so implementers are responsible for making sure that the modifier doesn't make any changes and its cache keys are appropriately invalidated.
Derived Overrides
- UInstancedPatchModifier::SetDisabledByCode
- UInstancedProjectionModifier::SetDisabledByCode
- UInstancedTexturePatchModifier::SetDisabledByCode
- UProjectMeshLayersModifier::SetDisabledByCode
- USimpleWriteModifier::SetDisabledByCode
| Name | SetDisabledByCode |
| Type | function |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/Modifiers/CodeReusableMeshPartitionModifierInterface.h |
| Include Path | #include "Modifiers/CodeReusableMeshPartitionModifierInterface.h" |
void SetDisabledByCode
(
bool bDisabledIn
)