When a designer changes the properties of an Actor placed in the level, it is often important to show any visual results of that change immediately rather than just when the level is simulated or played. When changes are made using the Details panels, there's a special event that the editor emits called PostEditChangeProperty, which gives the class instance a chance to respond to the property being edited. This recipe shows you how to handle PostEditChangeProperty for immediate in-editor feedback.
Responding to property changed events from the editor
How to do it...
- Create a new Actor called PostEditChangePropertyActor based on StaticMeshActor:
- Add the following UPROPERTY and function definition to the class:
UCLASS...