# Is there a Blueprint compile event?

**URL:** <https://forums.unrealengine.com/t/is-there-a-blueprint-compile-event/394653>\
**Category:** Blueprint\
**Tags:** cdo, unreal-engine, Blueprint, question\
**Created:** [May 26, 2017, 9:10am UTC](https://forums.unrealengine.com/t/is-there-a-blueprint-compile-event/394653 "2017-05-26T09:10:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_Schaff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cedric\_Schaff](https://forums.unrealengine.com/u/Cedric_Schaff)\
**Post date:** [May 26, 2017, 9:10am UTC](https://forums.unrealengine.com/t/is-there-a-blueprint-compile-event/394653/1 "2017-05-26T09:10:35Z")

</div>

I made a custom editor module for one of my Actor.  
Is there a way to bind a delegate to the blueprint editor compile event. I would like to propagate the change to all instances from the CDO only in case of successful compilation.

---

<div class="post-metadata">

**Author:** ![ExtraLifeMatt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extralifematt/32/918695_2.png) [@ExtraLifeMatt](https://forums.unrealengine.com/u/ExtraLifeMatt)\
**Post date:** [May 26, 2017, 2:24pm UTC](https://forums.unrealengine.com/t/is-there-a-blueprint-compile-event/394653/2 "2017-05-26T14:24:45Z")

</div>

There is, in fact, events for Blueprint PreCompile, Compiled, and Reinstanced.

They exist on the GEditor object, so you can look at AIGraphTypes.cpp for an example on how they have it setup:

```
	GEditor->OnBlueprintCompiled().AddRaw(this, &FGraphNodeClassHelper::InvalidateCache);
```

---

<div class="post-metadata">

**Author:** ![Cedric\_Schaff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cedric\_Schaff](https://forums.unrealengine.com/u/Cedric_Schaff)\
**Post date:** [May 26, 2017, 5:49pm UTC](https://forums.unrealengine.com/t/is-there-a-blueprint-compile-event/394653/3 "2017-05-26T17:49:18Z")

</div>

perfect, that’s exactly what i need. Thanks !
