# How do I use PostEditChangeProperty?

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-posteditchangeproperty/324110>\
**Category:** C++\
**Tags:** property, unreal-engine, question, CPP\
**Created:** [July 5, 2015, 12:22am UTC](https://forums.unrealengine.com/t/how-do-i-use-posteditchangeproperty/324110 "2015-07-05T00:22:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kishoreven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kishoreven](https://forums.unrealengine.com/u/kishoreven)\
**Post date:** [July 5, 2015, 12:19pm UTC](https://forums.unrealengine.com/t/how-do-i-use-posteditchangeproperty/324110/2 "2015-07-05T12:19:32Z")

</div>

/\* If MyBool belongs to the ASomeActor \*/  
void ASomeActor::PostEditChangeProperty(struct FPropertyChangedEvent& e)  
{  
Super::PostEditChangeProperty(e);

```
     FName PropertyName = (e.Property != NULL) ? e.Property->GetFName() : NAME_None;
     if (PropertyName == GET_MEMBER_NAME_CHECKED(ASomeActor, MyBool)) {
             /* Because you are inside the class, you should see the value already changed */
                if (MyBool) doThings(); // This is how you access MyBool.
                 else undoThings();

            /* if you want to use bool property */
            UBoolProperty* prop = static_cast<UBoolProperty*>(e.Property);
           if (prop->GetPropertyValue())
               dothings()
          else
                 undothings()
     }
 }
```

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-i-use-posteditchangeproperty/324110)._
