RootComponent = CreateDefaultSubobject(TEXT("RootComponent"));
I want to know the reason why we make subobject here.
I used a translator because I couldn't speak English well.
Thank You.
RootComponent = CreateDefaultSubobject(TEXT("RootComponent"));
I want to know the reason why we make subobject here.
I used a translator because I couldn't speak English well.
Thank You.
This function creates a component inside your object. Objects are instances of your class. The result is the same as clicking the component button in the blueprint editor.