# Blueprint event on property changed?

**URL:** <https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097>\
**Category:** Editor Scripting\
**Tags:** Editor-Scripting, unreal-engine, UE5-0, question\
**Created:** [August 18, 2022, 1:44pm UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097 "2022-08-18T13:44:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [August 18, 2022, 1:44pm UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/1 "2022-08-18T13:44:24Z")

</div>

I’m looking for a way to make data validation for values input to properties in the Details window in the editor. I’m a designer so I’m not good with code. Recently I saw some examples of how many things can be done in Blueprints via Create → Editor Utilities.

Does anyone have experience with that? Basically I want to get an event when the property changes value and then react if the new value is not allowed. This should happen when editting Actors in the editor, not ingame.

I’ve been trying with Editor Utility Blueprints and Editor Utility Widgets but could not find any way to do it. I found ‘Bind Event to On Property Changed’ but it requires PropertyViewBase as target and I don’t know how to get that.

Edit:  
I found that in EditorUtilityWidget you can add SinglePropertyView and then bind it using OnPropertyChanged. But In my case I want it to react to change to Transform’s Rotation. So I cannot create a new property but connect to an existing one. Don’t know how to do that…

---

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [September 14, 2022, 9:27am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/2 "2022-09-14T09:27:59Z")

</div>

I’m still fighting with this. Does anyone know how to connect default editor’s Details panel to ‘Bind Event to On Property Changed’?

![obraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/1/7610806a209485ad24581ebfaf08001d30b3e8a3.png)

I don’t know how to get proper Target for that node…

---

<div class="post-metadata">

**Author:** ![LucidGem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucidGem](https://forums.unrealengine.com/u/LucidGem)\
**Post date:** [September 14, 2022, 11:51am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/3 "2022-09-14T11:51:31Z")

</div>

Hi!  
Here is something that can help

> **[Unreal — How to use Details View and Single Property View in Editor Utility...](https://filipsivak.medium.com/unreal-how-to-use-details-view-and-single-property-view-in-editor-utility-widget-38c47ba8dfe5)**
>
> The image above contains a plain old simple Editor Utility Widget, backed by a very simple blueprint and nothing else. You can display “actor pickers”, “asset pickers” and other useful widgets in the…

You can call _OnPropertyChanged_ from both. But I’ve seen that variables like _Vector_, _Rotator_ or _Transform_ aren’t supported in _SinglePropertyView_. So you can do it with the _DetailsView_ or make 3 separate floats with _SinglePropertyView_, one for each axis of the rotation.  
Also, you may need to connect your object data to the widget variables.

---

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [September 19, 2022, 1:59pm UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/4 "2022-09-19T13:59:02Z")

</div>

I don’t wake to make a new window/widget. I’d like to connect to the existing details window.

---

<div class="post-metadata">

**Author:** ![LucidGem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucidGem](https://forums.unrealengine.com/u/LucidGem)\
**Post date:** [September 21, 2022, 8:49am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/5 "2022-09-21T08:49:25Z")

</div>

In that case, you may have to make your own _OnPropertyChanged_.  
For example:

This is an EditorUtilityWidget

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/e/55e0edf720ff4124177152490b8cb3ed4ebfc20c.png)

---

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [September 21, 2022, 11:59am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/6 "2022-09-21T11:59:22Z")

</div>

Yeah, I’ve been doing a similar thing - I store and check change in rotation in the Construction Script. It just feels hacky and not optimal. I hoped there was a better way. But thanks your idea will work too.

---

<div class="post-metadata">

**Author:** ![sandolkakos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sandolkakos/32/1058903_2.png) [@sandolkakos](https://forums.unrealengine.com/u/sandolkakos)\
**Post date:** [January 8, 2023, 9:35am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/7 "2023-01-08T09:35:04Z")

</div>

I was able to execute stuff when the properties get changed like the image below (listening to the `Event Pre Construct`).

I decided to create a reusable button with the ability to change its text manually in the editor of the WidgetBlueprint using it. So that I can have multiple instances of the same button with different texts.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/5/f65cb72a6a837e4ca01e1eb1f49054eae4388895.jpeg)

---

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [January 10, 2023, 8:58am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/8 "2023-01-10T08:58:07Z")

</div>

But how are you connecting to a specific property here? Like e.g. Rotation? I don’t see that in your screenshots…

---

<div class="post-metadata">

**Author:** ![sandolkakos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sandolkakos/32/1058903_2.png) [@sandolkakos](https://forums.unrealengine.com/u/sandolkakos)\
**Post date:** [January 11, 2023, 4:47am UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/9 "2023-01-11T04:47:32Z")

</div>

If I got it correctly, the `Event Pre Construct` will get executed every time a modification is done in any element of this whole Widget.  
That is why I did not need to connect my text field.

---

<div class="post-metadata">

**Author:** ![Reahreic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/reahreic/32/911691_2.png) [@Reahreic](https://forums.unrealengine.com/u/Reahreic)\
**Post date:** [August 20, 2024, 3:30pm UTC](https://forums.unrealengine.com/t/blueprint-event-on-property-changed/631097/10 "2024-08-20T15:30:53Z")

</div>

I’ve encountered an issue when I add two or more widget components that utilize this technique. When I re-open the editor after adding the second button instance, the editor throws an unhandled null exception in Widget.cpp’s GetExtension method. SO far I’ve not been able to determine where the null comes from or why it (mostly) only errors when opening the editor.
