When developing with Unreal, it is common for programmers to implement properties on Actors or other objects in C++, and make them visible in the editor for designer use. However, sometimes, it makes sense to view a property, or make it editable, but only on the object's default state. Sometimes, the property should only be modifiable at runtime with the default specified in C++. Fortunately, there are some specifiers that can help us restrict when a property is available.
Editing class properties in different places in the editor
How to do it...
- Create a new Actor class in the editor called PropertySpecifierActor:
![](https://static.packt-cdn.com/products/9781789809503/graphics/assets/1181d0a4-74a1-4ab3-ac08-773bf590a75a.png)
- Add the following property definitions to the class:
#pragma once
#include "CoreMinimal.h"...