I have to create object like this:
UStaticMeshComponent* staticMesh = CreateDefaultSubobject(TEXT("CustomStaticMesh"));