While marking classes as BlueprintType or Blueprintable allows us to pass instances of the class around in Blueprint, or to subclass the type with a Blueprint class, those specifiers don't actually say anything about member functions or variables, and whether they should be exposed to Blueprint. This recipe shows you how to mark a function so that it can be called within Blueprint graphs.
Creating functions that can be called in Blueprint
How to do it...
- Create a new C++ class derived from the StaticMeshActor class using the editor wizard; call it SlidingDoor.
- Add the following text that's in bold to the new class:
class CHAPTER_09_API ASlidingDoor : public AStaticMeshActor
{
GENERATED_BODY()
public:
...