Proper way to use a custom class in C++

Hello,

I was wondering what if I am using my custom class in very wrong way.

I programmed a few classes for my character class.

And I’m just using it with NewObject();

Here is my example

MyObject = NewObject<UMyObject>();

It’s all about just my custom calculations and functions.

Could you tell me if I’m using very wrong way to using my classes and objects for character class?

Thank you!

As long as your object inherits from UObject, and you don’t get any errors, this is the correct way to create and object, in some cases you need to use the optional parameters of this function. Look at the docs if you want to learn more about that.

Thank you very much for your answer!