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:
- Add the following property definitions to the class:
#pragma once
#include "CoreMinimal.h"...