inside of my Editor Module, I have a commandlet class named as "UmyCommandlet2Commandlet "
Here is the header file contents:
//myCommandlet2Commandlet.h
#pragma once
//#include "pak_4_11_p1Editor.h"
#include "Commandlets/Commandlet.h"
#include "myCommandlet2Commandlet.generated.h"
UCLASS()
class UmyCommandlet2Commandlet : public UCommandlet
{
GENERATED_UCLASS_BODY()
//~ Begin UCommandlet Interface
virtual void CreateCustomEngine(const FString& Params) override;
virtual int32 Main(const FString& Params) override;
//~ End UCommandlet Interface
};
I am trying to access it using:
“UE4Editor.exe
J:\UnrealProjects\pak_4_11_p2\pak_4_11_p1.uproject
-run=myCommandlet2”
But I am always getting this error:
[2016.07.04-22.58.53:573][
0]LogInit:Error:
myCommandlet233Commandlet looked like
a commandlet, but we could not find
the class.
If i move same class under my primaryModule then it works fine.
Why under Editor module , ue4 failed to find it?
how to make it find?