Plugin Script does not print to output log

Hi,

I am new to Unreal. I am trying to create a very simple plugin.I have followed the following steps till now.

  1. Unreal-> New C++ project (PluginMaker)
  2. Edit->New Plugin->Blank plugin (File Search)
  3. Create C++ class inside plugin (MyClass)

The screenshot is attached. I cannot see the output in the output log in my Editor. But the project builds fine. Does anyone know if I have to do anymore work to get the plugin to print a message in output log.

Is anything creating instances of this class?

Than you for your reply. No I was not creating instances of this class. however, I got this problem resolved by:

Creating a new C++ class inside my plugin
DEFINE_LOG_CATEGORY(x); inside this class
UE_LOG(x, Log, TEXT(“Your message”));

Well, then I’m not sure what you were expecting to happen? Of course the constructor doesn’t run when you don’t create instances.

It’s “working” now only because your constructor is run when creating the CDO. It doesn’t make it a good place to put code.