Commandlet issue: looked like a commandlet, but we could not find the class

[At answers.unrealengine.com 80% question related to commandlet remained unAnswered. And in forum there is zero discussion on commandlet. So I have no clue ]

inside of my Editor Module, I have a commandlet class named as "UmyCommandlet2Commandlet " Here is the header file contents:

//contents of 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:

But I am always getting this error:

**If i move the same class under my primaryModule then it ue4 execute it without any complain **

Then Why under Editor module , ue4 failed to find it? how to make it find?

Try changing LoadingPhase to “Default” for the editor module in your .uproject file.

1 Like