-
Create C ++ Project
-
Create a C ++ actor class (AMyActor)
-
Add static variable code to cpp
static const UClass* TestCode = AMyActor::StaticClass();
-
Build
-
Play a standalone game
-
Crash
Running it in the “editor window” works fine.
[link text][2]