The problem is next, when you do exactly what described in the tutorial, your mesh will not be created and attached to FloatingActor object and here is what I find.
Mistake located in this line of code:
if((USceneComponent* ExistingRootComponent = GetRootComponent())
I assume that the cause of the problem is that Unreal Engine don’t have root until you create any component(that will become root), so this code will works if you simply remove that condition(I think it is not needed in that case. So GetRootComponent() method returns nullptr because you don’t have any root.
Unreal Engine team, please, correct that issue, so people that start the way of game development in Unreal Engine will not face that extra underwater stone(they will face a lot of them in the future without that one )
Thank you for attention and awesome luck!
1 Like
I was struggling to solve this problem and your information helped me. Thank you!
1 Like