> 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/modular-attachment-fragment/editor-integration.md).

# Editor Integration

### `PostEditChangeProperty`

When any property changes in the Details panel, the fragment calls `GetOwnerDefinition()->OnFragmentChanged()` which iterates all `UModularAttachmentComponent` instances in editor worlds and calls `RefreshEditorPreview()`. This gives you live WYSIWYG preview updates.

### Graph Editor

Fragments store `EditorGraphPosition` so the node-based graph editor can persist layout. The fragment graph editor visualizes the parent→child hierarchy defined by `AttachedFragments`.

### Node Selection Outline

When you click a fragment node in the graph editor, the editor calls `Fragment→GetSpawnedMeshComponent()` and, if the result is a `UPrimitiveComponent`, highlights it with a selection outline in the viewport. This lets you visually identify which mesh belongs to which node.

Custom fragments that spawn a mesh should override `GetSpawnedMeshComponent()` to return their spawned component — otherwise the outline will not appear when the node is selected.
