-
Notifications
You must be signed in to change notification settings - Fork 9
Using with CPP
Patrick Hardy edited this page Jan 30, 2019
·
4 revisions
As of now C++ usage with this plugin is recommended only for managing instances. Creating the actual State Machines should be done with the new State Machine Blueprint Editor.
All classes generally start with SM (USM, FSM, etc)
- In your PROJECT.Build.cs file add "SMSystem" to PublicDependencyModuleNames
-
#include "SMUtils.h"
-
An instance class is USMInstance*
-
The utility helper class is USMBlueprintUtils.
-
An instance can be instantiated by calling USMBlueprintUtils::CreateStateMachineInstance(TSubclassOf < class USMInstance >, UObject* Context);
Just call StateMachine->Start(); when you are ready.
Designing State Machines in C++ is not recommended. This plugin works by heavily utilizing Blueprint functionality and a custom Kismet Compiler.
