> For the complete documentation index, see [llms.txt](https://dante-3.gitbook.io/dante-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dante-3.gitbook.io/dante-docs/modular-attachment-system/editor-integration.md).

# Editor Integration

### `PostEditChangeProperty`

```cpp
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
```

Triggers `OnFragmentChanged()` whenever any property on the definition (including inline fragment properties) changes.

### `OnFragmentChanged`

```cpp
void OnFragmentChanged();
```

Iterates all `UModularAttachmentComponent` instances in editor worlds (`TObjectIterator`) and calls `RefreshEditorPreview()` on any component whose `AttachmentDefinitionAsset` resolves to this definition.

This gives **automatic updates** — change a mesh reference in the definition, and every viewport using it refreshes immediately.

```
Definition property change
  └─► OnFragmentChanged()
        └─► For each UModularAttachmentComponent in editor worlds:
              if Comp->AttachmentDefinitionAsset.Get() == this:
                Comp->RefreshEditorPreview()
```

***
