You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patrick Hardy edited this page Feb 22, 2019
·
4 revisions
Managing Instances
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.
Naming
All classes generally start with SM (USM, FSM, etc).
Build.cs
In your PROJECT.Build.cs file add "SMSystem" to PublicDependencyModuleNames.
File Usage
#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.
Design-Time
Designing State Machines in C++ is not supported. This plugin works by heavily utilizing Blueprint functionality and a custom Kismet Compiler.